From 818f4da5778aa42ca13a3e7807ac1d5b9393be58 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sat, 23 Jul 2022 19:21:45 +1000 Subject: [PATCH] Add new feature `static` that is enabled by default Signed-off-by: Jiahao XU --- Cargo.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2656b7ff..21bcb282 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ pkg-fmt = "zip" [dependencies] async-trait = "0.1.56" bytes = "1.1.0" -bzip2 = { version = "0.4.3", features = ["static"] } +bzip2 = "0.4.3" cargo_toml = "0.11.4" clap = { version = "3.2.12", features = ["derive"] } crates_io_api = { version = "0.8.0", default-features = false, features = ["rustls"] } @@ -50,7 +50,7 @@ tinytemplate = "1.2.1" tokio = { version = "1.20.0", features = ["rt-multi-thread", "process", "sync"], default-features = false } toml = "0.5.9" url = "2.2.2" -xz2 = { version = "0.1.6", features = ["static"] } +xz2 = "0.1.6" # Disable all features of zip except for features of compression algorithms: # Disabled features include: @@ -69,8 +69,9 @@ zstd = { version = "0.10.0", default-features = false } guess_host_triple = "0.1.3" [features] -default = [] +default = ["static"] mimalloc = ["dep:mimalloc"] +static = ["bzip2/static", "xz2/static"] [dev-dependencies] env_logger = "0.9.0"