Change style_traits to a single "servo" Cargo feature

... instead of fine-grained heap_size and serde-serialization ones.
This commit is contained in:
Simon Sapin 2016-06-22 13:36:14 +02:00
parent 00b6210519
commit 3822bb269c
7 changed files with 22 additions and 46 deletions

View file

@ -9,8 +9,7 @@ use cssparser::ToCss;
macro_rules! define_cursor {
($( $css: expr => $variant: ident = $value: expr, )+) => {
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serde-serialization", derive(Deserialize, Serialize))]
#[cfg_attr(feature = "heap_size", derive(HeapSizeOf))]
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize, HeapSizeOf))]
#[repr(u8)]
pub enum Cursor {
$( $variant = $value ),+