[package] name = "flate2-expose" authors = [ "Alex Crichton ", "Josh Triplett ", ] version = "1.0.25" edition = "2018" license = "MIT OR Apache-2.0" readme = "README.md" keywords = ["gzip", "deflate", "zlib", "zlib-ng", "encoding"] categories = ["compression", "api-bindings"] repository = "https://github.com/rust-lang/flate2-rs" homepage = "https://github.com/rust-lang/flate2-rs" documentation = "https://docs.rs/flate2" description = """ DEFLATE compression and decompression exposed as Read/BufRead/Write streams. Supports miniz_oxide and multiple zlib implementations. Supports zlib, gzip, and raw deflate streams. """ [dependencies] libz-sys = { version = "1.1.8", optional = true, default-features = false } libz-ng-sys = { version = "1.1.8", optional = true } cloudflare-zlib-sys = { version = "0.3.0", optional = true } miniz_oxide = { version = "0.5.0", optional = true, default-features = false } crc32fast = "1.2.0" [target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies] miniz_oxide = { version = "0.5.0", default-features = false } [dev-dependencies] rand = "0.8" quickcheck = { version = "1.0", default-features = false } [features] default = ["rust_backend"] any_zlib = [] # note: this is not a real user-facing feature zlib = ["any_zlib", "libz-sys"] zlib-ng-compat = ["zlib", "libz-sys/zlib-ng"] zlib-ng = ["any_zlib", "libz-ng-sys"] cloudflare_zlib = ["any_zlib", "cloudflare-zlib-sys"] rust_backend = ["miniz_oxide"] miniz-sys = ["rust_backend"] # For backwards compatibility