Skip to content

Commit

Permalink
clean up feature usage
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Jun 10, 2024
1 parent 6db5584 commit b86af89
Showing 1 changed file with 4 additions and 37 deletions.
41 changes: 4 additions & 37 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,12 @@ rust-version = "1.65"

[features]
default = ["bz2", "lzma", "xz", "gz", "bgz", "zstd"]
bz2 = ["bzip2"]
lzma = ["liblzma"]
gz = ["flate2"]
bgz = ["bgzip"]
bz2 = ["dep:bzip2", "bzip2?/tokio", "bzip2?/static"]
lzma = ["dep:liblzma", "liblzma?/tokio"]
gz = ["dep:flate2", "flate2?/zlib", "flate2?/zlib-ng-compat", "flate2?/cloudflare_zlib", "flate2?/rust_backend"]
bgz = ["dep:bgzip"]
xz = ["lzma"]

# bzip2 feature transitivity
bz2_tokio = ["bzip2/tokio"]
bz2_static = ["bzip2/static"]

# lzma feature transitivity
lzma_tokio = ["liblzma/tokio"]

# flate2 feature transitivity
gz_zlib = ["flate2/zlib"]
gz_zlib-ng-compat = ["flate2/zlib-ng-compat"]
gz_cloudflare_zlib = ["flate2/cloudflare_zlib"]
gz_rust_backend = ["flate2/rust_backend"]

# xz feature transitivity
xz_tokio = ["liblzma/tokio"]


[dependencies]
cfg-if = "1.0"
thiserror = "1.0"
Expand Down Expand Up @@ -71,22 +54,6 @@ required-features = ["xz2"]

[package.metadata.cargo-all-features]
denylist = [
# bzip2 feature transitivity
"bz2_tokio",
"bz2_static",

# lzma feature transitivity
"lzma_tokio",

# flate2 feature transitivity
"gz_zlib",
"gz_zlib-ng-compat",
"gz_cloudflare_zlib",
"gz_rust_backend",

# xz feature transitivity
"xz_tokio",

# xz is an alias to lzma
"xz",
]
Expand Down

0 comments on commit b86af89

Please sign in to comment.