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