Enable 'compression' test dependencies conditionally.

This commit is contained in:
Sergio Benitez 2019-05-16 13:17:14 -07:00
parent 273c7a607d
commit 5334f17ea9
2 changed files with 6 additions and 0 deletions

View File

@ -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"))]

View File

@ -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"))]