aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
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 /Cargo.toml
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 'Cargo.toml')
-rw-r--r--Cargo.toml12
1 files changed, 7 insertions, 5 deletions
diff --git a/Cargo.toml b/Cargo.toml
index e94367f..1094109 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,9 +6,9 @@ edition = "2018"
license = "APACHE 2.0"
[dependencies]
-mcproto-rs = { git = "https://github.com/Twister915/mcproto-rs", branch = "master", default-features = false, features = ["std", "v1_15_2", "v1_16_3"] }
-aes = "0.6.0"
-flate2 = { version = "1.0", features = ["zlib"] }
+mcproto-rs = { git = "https://github.com/Twister915/mcproto-rs", branch = "master", features = ["std"], default-features = false }
+aes = { version = "0.6.0", optional = true }
+flate2 = { version = "1.0", features = ["zlib"], optional = true }
thiserror = "1.0"
@@ -17,7 +17,9 @@ async-trait = { version = "0.1.42", optional = true }
tokio = { version = "0.2", features = ["rt-threaded", "tcp", "io-util", "macros", "dns"], optional = true }
[features]
-default = []
+default = [ "compression", "encryption" ]
futures-io = ["futures", "async-trait"]
-tokio-io = ["tokio", "async-trait"] \ No newline at end of file
+tokio-io = ["tokio", "async-trait"]
+encryption = ["aes"]
+compression = [ "flate2" ] \ No newline at end of file