aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJoey Sacchini <joey@sacchini.net>2020-12-03 16:27:58 -0500
committerJoey Sacchini <joey@sacchini.net>2020-12-03 16:27:58 -0500
commit64272b9938ffe84a196b00fd4f14125bcaf9f832 (patch)
tree156b82869e02476ec686be2ffb0b089fcf17929c /src/lib.rs
parentd3e6ebc20b26a1863f1443884413b72e3605ec3d (diff)
downloadcraftio-rs-64272b9938ffe84a196b00fd4f14125bcaf9f832.tar.gz
craftio-rs-64272b9938ffe84a196b00fd4f14125bcaf9f832.tar.bz2
craftio-rs-64272b9938ffe84a196b00fd4f14125bcaf9f832.zip
make compression and encryption optional features
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 16d26a7..5789dd5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,6 @@
#![feature(backtrace)]
+#[cfg(feature = "encryption")]
mod cfb8;
mod connection;
mod reader;
@@ -8,6 +9,7 @@ mod util;
mod wrapper;
mod writer;
+#[cfg(feature = "encryption")]
pub use cfb8::CipherError;
pub use connection::CraftConnection;
pub use reader::*;