diff options
Diffstat (limited to 'components/style/lib.rs')
-rw-r--r-- | components/style/lib.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/components/style/lib.rs b/components/style/lib.rs index a43f3f87c45..1c3630b0986 100644 --- a/components/style/lib.rs +++ b/components/style/lib.rs @@ -67,6 +67,8 @@ extern crate matches; pub extern crate nsstring; #[cfg(feature = "gecko")] extern crate num_cpus; +#[macro_use] +extern crate num_derive; extern crate num_integer; extern crate num_traits; extern crate ordered_float; @@ -128,15 +130,13 @@ pub mod font_face; pub mod font_metrics; #[cfg(feature = "gecko")] #[allow(unsafe_code)] -pub mod gecko; -#[cfg(feature = "gecko")] -#[allow(unsafe_code)] pub mod gecko_bindings; pub mod hash; pub mod invalidation; #[allow(missing_docs)] // TODO. pub mod logical_geometry; pub mod matching; +#[macro_use] pub mod media_queries; pub mod parallel; pub mod parser; @@ -190,11 +190,16 @@ pub mod properties { include!(concat!(env!("OUT_DIR"), "/properties.rs")); } +#[cfg(feature = "gecko")] +#[allow(unsafe_code)] +pub mod gecko; + // uses a macro from properties #[cfg(feature = "servo")] #[allow(unsafe_code)] pub mod servo; + #[cfg(feature = "gecko")] #[allow(unsafe_code, missing_docs)] pub mod gecko_properties { |