1[package]
2name = "flate2"
3authors = ["Alex Crichton <alex@alexcrichton.com>", "Josh Triplett <josh@joshtriplett.org>"]
4version = "1.1.1"
5edition = "2018"
6license = "MIT OR Apache-2.0"
7readme = "README.md"
8rust-version = "1.67.0"
9keywords = ["gzip", "deflate", "zlib", "zlib-ng", "encoding"]
10categories = ["compression", "api-bindings"]
11repository = "https://github.com/rust-lang/flate2-rs"
12homepage = "https://github.com/rust-lang/flate2-rs"
13documentation = "https://docs.rs/flate2"
14description = """
15DEFLATE compression and decompression exposed as Read/BufRead/Write streams.
16Supports miniz_oxide and multiple zlib implementations. Supports zlib, gzip,
17and raw deflate streams.
18"""
19exclude = [".*"]
20
21[dependencies]
22libz-sys = { version = "1.1.20", optional = true, default-features = false }
23libz-ng-sys = { version = "1.1.16", optional = true }
24# this matches the default features, but we don't want to depend on the default features staying the same
25libz-rs-sys = { version = "0.5.0", optional = true, default-features = false, features = ["std", "rust-allocator"] }
26cloudflare-zlib-sys = { version = "0.3.5", optional = true }
27miniz_oxide = { version = "0.8.5", optional = true, default-features = false, features = ["with-alloc"] }
28crc32fast = "1.2.0"
29
30[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
31miniz_oxide = { version = "0.8.5", default-features = false, features = ["with-alloc"] }
32
33[dev-dependencies]
34rand = "0.9"
35quickcheck = { version = "1.0", default-features = false }
36
37[features]
38default = ["rust_backend"]
39any_zlib = ["any_impl"] # note: this is not a real user-facing feature
40any_impl = [] # note: this is not a real user-facing feature
41zlib = ["any_zlib", "libz-sys"]
42zlib-default = ["any_zlib", "libz-sys/default"]
43zlib-ng-compat = ["zlib", "libz-sys/zlib-ng"]
44zlib-ng = ["any_zlib", "libz-ng-sys"]
45zlib-rs = ["any_zlib", "libz-rs-sys"]
46cloudflare_zlib = ["any_zlib", "cloudflare-zlib-sys"]
47rust_backend = ["miniz_oxide", "any_impl"]
48miniz-sys = ["rust_backend"] # For backwards compatibility
49
50[package.metadata.docs.rs]
51all-features = true
52rustdoc-args = ["--cfg", "docsrs"]
53