Add new feature zlib-ng (enabeld by default)

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-23 20:26:28 +10:00
parent f2d5d0291b
commit 6fe2762f11
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -26,7 +26,7 @@ cargo_toml = "0.11.4"
clap = { version = "3.2.12", features = ["derive"] }
crates_io_api = { version = "0.8.0", default-features = false, features = ["rustls"] }
dirs = "4.0.0"
flate2 = { version = "1.0.24", features = ["zlib-ng"], default-features = false }
flate2 = { version = "1.0.24", default-features = false }
fs4 = "0.6.2"
futures-util = { version = "0.3.21", default-features = false }
home = "0.5.3"
@ -69,10 +69,11 @@ zstd = { version = "0.10.0", default-features = false }
guess_host_triple = "0.1.3"
[features]
default = ["static"]
default = ["static", "zlib-ng"]
mimalloc = ["dep:mimalloc"]
static = ["bzip2/static", "xz2/static"]
pkg-config = ["zstd/pkg-config"]
zlib-ng = ["flate2/zlib-ng"]
[dev-dependencies]
env_logger = "0.9.0"