99#![ cfg_attr( feature = "serde-serialization" , feature( custom_derive) ) ]
1010#![ cfg_attr( feature = "serde-serialization" , feature( plugin) ) ]
1111#![ cfg_attr( feature = "serde-serialization" , plugin( serde_macros) ) ]
12+ #![ cfg_attr( feature = "heap_size" , feature( custom_derive) ) ]
13+ #![ cfg_attr( feature = "heap_size" , feature( plugin) ) ]
14+ #![ cfg_attr( feature = "heap_size" , plugin( heapsize_plugin) ) ]
1215
1316/*!
1417
@@ -71,7 +74,7 @@ extern crate encoding;
7174#[ cfg( test) ] extern crate tempdir;
7275#[ cfg( test) ] extern crate rustc_serialize;
7376#[ cfg( feature = "serde-serialization" ) ] extern crate serde;
74- #[ cfg( feature = "heap_size" ) ] # [ macro_use ] extern crate heapsize;
77+ #[ cfg( feature = "heap_size" ) ] extern crate heapsize;
7578
7679pub use tokenizer:: { Token , NumericValue , PercentageValue , SourceLocation } ;
7780pub use rules_and_declarations:: { parse_important} ;
@@ -84,8 +87,6 @@ pub use nth::parse_nth;
8487pub use serializer:: { ToCss , CssStringWriter , serialize_identifier, serialize_string} ;
8588pub use parser:: { Parser , Delimiter , Delimiters , SourcePosition } ;
8689
87- #[ cfg( feature = "heap_size" ) ] known_heap_size ! ( 0 , Color , RGBA ) ;
88-
8990
9091/**
9192
0 commit comments