diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2016-01-11 19:17:33 -0800 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2016-01-11 19:38:43 -0800 |
commit | dec296ddbcbc870b54fbde1de7a57c8cf162c38b (patch) | |
tree | 25696ff9b7d921ea8ad7017b7f8c3433e412e789 /components/util/lib.rs | |
parent | 384cdfcfff157afb3d02c5fafb7fbf1e347f5e7b (diff) | |
download | servo-dec296ddbcbc870b54fbde1de7a57c8cf162c38b.tar.gz servo-dec296ddbcbc870b54fbde1de7a57c8cf162c38b.zip |
Use features to prevent the util component from entraining the world in GeckoLib builds.
Diffstat (limited to 'components/util/lib.rs')
-rw-r--r-- | components/util/lib.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/components/util/lib.rs b/components/util/lib.rs index 2630d83fbe6..660945d4c1a 100644 --- a/components/util/lib.rs +++ b/components/util/lib.rs @@ -6,7 +6,7 @@ #![feature(box_syntax)] #![feature(core_intrinsics)] #![feature(custom_derive)] -#![feature(decode_utf16)] +#![cfg_attr(feature = "non-geckolib", feature(decode_utf16))] #![feature(fnbox)] #![feature(hashmap_hasher)] #![feature(heap_api)] @@ -22,6 +22,7 @@ extern crate alloc; extern crate app_units; +#[cfg(feature = "non-geckolib")] extern crate azure; #[macro_use] extern crate bitflags; @@ -29,10 +30,14 @@ extern crate bitflags; extern crate cssparser; extern crate euclid; extern crate getopts; +#[cfg(feature = "non-geckolib")] extern crate html5ever; +#[cfg(feature = "non-geckolib")] extern crate hyper; extern crate ipc_channel; +#[cfg(feature = "non-geckolib")] extern crate js; +#[cfg(feature = "non-geckolib")] extern crate layers; #[macro_use] extern crate lazy_static; @@ -61,7 +66,9 @@ pub mod geometry; pub mod ipc; pub mod linked_list; pub mod logical_geometry; -pub mod mem; +#[macro_use] pub mod mem; +#[cfg(feature = "non-geckolib")] +pub mod non_geckolib; pub mod opts; pub mod persistent_list; pub mod prefs; |