-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
94 lines (75 loc) · 1.96 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[package]
name = "niffler"
version = "2.6.0"
authors = ["Pierre Marijon <[email protected]>", "Luiz Irber <[email protected]>"]
description = "Simple and transparent support for compressed files"
license = "MIT/Apache-2.0"
repository = "https://github.com/luizirber/niffler"
homepage = "https://github.com/luizirber/niffler"
readme = "README.md"
documentation = "https://docs.rs/niffler"
edition = "2021"
rust-version = "1.65"
[features]
default = ["bz2", "lzma", "xz", "gz", "bgz", "zstd"]
bz2 = ["bzip2"]
lzma = ["liblzma"]
gz = ["flate2"]
bgz = ["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"
bzip2 = { version = "0.4.4", optional = true}
flate2 = { version = "1.0", optional = true }
liblzma = { version = "0.3", optional = true }
bgzip = { version = "0.3", optional = true, default-features = false, features = ["rust_backend"] }
zstd = { version = "0.13", optional = true }
[dev-dependencies]
tempfile = "3"
criterion = "0.3"
[[bench]]
name = "detect_format"
harness = false
[[bench]]
name = "gzip"
harness = false
required-features = ["gz"]
[[bench]]
name = "bzip2"
harness = false
required-features = ["bz2"]
[[bench]]
name = "lzma"
harness = false
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",
]
skip_optional_dependencies = true