Rocket

A web framework for Rust. https://rocket.rs (mirror)
git clone git://git.thc420.xyz/Rocket
Log | Files | Refs | README

commit 5334f17ea939ec72685afdac8047792b1f520f28
parent 273c7a607da96be84ec2b55257381764a3b7792b
Author: Sergio Benitez <sb@sergio.bz>
Date:   Thu, 16 May 2019 13:17:14 -0700

Enable 'compression' test dependencies conditionally.

Diffstat:
Mcontrib/lib/tests/compress_responder.rs | 3+++
Mcontrib/lib/tests/compression_fairing.rs | 3+++
2 files changed, 6 insertions(+), 0 deletions(-)

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