diff --git a/contrib/lib/tests/compress_responder.rs b/contrib/lib/tests/compress_responder.rs index 14d36948..9ab5ec9c 100644 --- a/contrib/lib/tests/compress_responder.rs +++ b/contrib/lib/tests/compress_responder.rs @@ -1,7 +1,10 @@ #![feature(decl_macro, proc_macro_hygiene)] #[macro_use] +#[cfg(all(feature = "brotli_compression", feature = "gzip_compression"))] extern crate rocket; + +#[cfg(all(feature = "brotli_compression", feature = "gzip_compression"))] extern crate rocket_contrib; #[cfg(all(feature = "brotli_compression", feature = "gzip_compression"))] diff --git a/contrib/lib/tests/compression_fairing.rs b/contrib/lib/tests/compression_fairing.rs index 7cae7ceb..68284a86 100644 --- a/contrib/lib/tests/compression_fairing.rs +++ b/contrib/lib/tests/compression_fairing.rs @@ -1,7 +1,10 @@ #![feature(decl_macro, proc_macro_hygiene)] #[macro_use] +#[cfg(all(feature = "brotli_compression", feature = "gzip_compression"))] extern crate rocket; + +#[cfg(all(feature = "brotli_compression", feature = "gzip_compression"))] extern crate rocket_contrib; #[cfg(all(feature = "brotli_compression", feature = "gzip_compression"))]