1[package]
2name = "miniz_oxide"
3authors = ["Frommi <daniil.liferenko@gmail.com>", "oyvindln <oyvindln@users.noreply.github.com>", "Rich Geldreich richgel99@gmail.com"]
4version = "0.8.8"
5license = "MIT OR Zlib OR Apache-2.0"
6readme = "Readme.md"
7keywords = ["zlib", "miniz", "deflate", "encoding"]
8categories = ["compression"]
9repository = "https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide"
10homepage = "https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide"
11documentation = "https://docs.rs/miniz_oxide"
12description = "DEFLATE compression and decompression library rewritten in Rust based on miniz"
13edition = "2021"
14exclude = ["benches/*", "tests/*"]
15
16[lib]
17name = "miniz_oxide"
18
19[dependencies]
20adler2 = { version = "2.0", default-features = false }
21simd-adler32 = { version = "0.3.3", default-features = false, optional = true }
22serde = { version = "1.0", features = ["derive"], optional = true }
23
24# Internal feature, only used when building as part of libstd, not part of the
25# stable interface of this crate.
26core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }
27alloc = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-alloc' }
28compiler_builtins = { version = '0.1.2', optional = true }
29
30
31[dev-dependencies]
32## Messes with minimum rust version and drags in deps just for running tests
33## so just comment out for now and enable manually when needed for enabling benches
34# criterion = "0.5"
35
36[[bench]]
37name = "benchmark"
38harness = false
39
40[features]
41default = ["with-alloc"]
42with-alloc = []
43std = []
44block-boundary = []
45
46# Internal feature, only used when building as part of libstd, not part of the
47# stable interface of this crate.
48rustc-dep-of-std = ['core', 'alloc', 'compiler_builtins', 'adler2/rustc-dep-of-std']
49
50simd = ['simd-adler32']
51
52# Disable unexpected cfg name warning from to !cfg(fuzzing) - compiler is not aware of the fuzzing feature since it comes from the environment
53# see https://github.com/rust-fuzz/cargo-fuzz/issues/372
54[lints.rust]
55unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
56