[dependencies.cloudflare-zlib-sys]
optional = true
version = "0.3.0"
[dependencies.crc32fast]
version = "1.2.0"
[dependencies.libz-ng-sys]
optional = true
version = "1.1.16"
[dependencies.libz-rs-sys]
default-features = false
features = ["std", "rust-allocator"]
optional = true
version = "0.4.0"
[dependencies.libz-sys]
default-features = false
optional = true
version = "1.1.20"
[dependencies.miniz_oxide]
default-features = false
features = ["with-alloc"]
optional = true
version = "0.8.0"
[dev-dependencies.quickcheck]
default-features = false
version = "1.0"
[dev-dependencies.rand]
version = "0.8"
[[example]]
name = "compress_file"
path = "examples/compress_file.rs"
[[example]]
name = "decompress_file"
path = "examples/decompress_file.rs"
[[example]]
name = "deflatedecoder-bufread"
path = "examples/deflatedecoder-bufread.rs"
[[example]]
name = "deflatedecoder-read"
path = "examples/deflatedecoder-read.rs"
[[example]]
name = "deflatedecoder-write"
path = "examples/deflatedecoder-write.rs"
[[example]]
name = "deflateencoder-bufread"
path = "examples/deflateencoder-bufread.rs"
[[example]]
name = "deflateencoder-read"
path = "examples/deflateencoder-read.rs"
[[example]]
name = "deflateencoder-write"
path = "examples/deflateencoder-write.rs"
[[example]]
name = "gzbuilder"
path = "examples/gzbuilder.rs"
[[example]]
name = "gzdecoder-bufread"
path = "examples/gzdecoder-bufread.rs"
[[example]]
name = "gzdecoder-read"
path = "examples/gzdecoder-read.rs"
[[example]]
name = "gzdecoder-write"
path = "examples/gzdecoder-write.rs"
[[example]]
name = "gzencoder-bufread"
path = "examples/gzencoder-bufread.rs"
[[example]]
name = "gzencoder-read"
path = "examples/gzencoder-read.rs"
[[example]]
name = "gzencoder-write"
path = "examples/gzencoder-write.rs"
[[example]]
name = "gzmultidecoder-bufread"
path = "examples/gzmultidecoder-bufread.rs"
[[example]]
name = "gzmultidecoder-read"
path = "examples/gzmultidecoder-read.rs"
[[example]]
name = "zlibdecoder-bufread"
path = "examples/zlibdecoder-bufread.rs"
[[example]]
name = "zlibdecoder-read"
path = "examples/zlibdecoder-read.rs"
[[example]]
name = "zlibdecoder-write"
path = "examples/zlibdecoder-write.rs"
[[example]]
name = "zlibencoder-bufread"
path = "examples/zlibencoder-bufread.rs"
[[example]]
name = "zlibencoder-read"
path = "examples/zlibencoder-read.rs"
[[example]]
name = "zlibencoder-write"
path = "examples/zlibencoder-write.rs"
[features]
any_impl = []
any_zlib = ["any_impl"]
cloudflare_zlib = ["any_zlib", "cloudflare-zlib-sys"]
default = ["rust_backend"]
miniz-sys = ["rust_backend"]
rust_backend = ["miniz_oxide", "any_impl"]
zlib = ["any_zlib", "libz-sys"]
zlib-default = ["any_zlib", "libz-sys/default"]
zlib-ng = ["any_zlib", "libz-ng-sys"]
zlib-ng-compat = ["zlib", "libz-sys/zlib-ng"]
zlib-rs = ["any_zlib", "libz-rs-sys"]
[lib]
name = "flate2"
path = "src/lib.rs"
[package]
authors = ["Alex Crichton <alex@alexcrichton.com>", "Josh Triplett <josh@joshtriplett.org>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["compression", "api-bindings"]
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.
"""
documentation = "https://docs.rs/flate2"
edition = "2018"
exclude = [".*"]
homepage = "https://github.com/rust-lang/flate2-rs"
keywords = ["gzip", "deflate", "zlib", "zlib-ng", "encoding"]
license = "MIT OR Apache-2.0"
name = "flate2"
readme = "README.md"
repository = "https://github.com/rust-lang/flate2-rs"
rust-version = "1.56.1"
version = "1.0.35"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.miniz_oxide]
default-features = false
features = ["with-alloc"]
version = "0.8.0"
[[test]]
name = "early-flush"
path = "tests/early-flush.rs"
[[test]]
name = "empty-read"
path = "tests/empty-read.rs"
[[test]]
name = "gunzip"
path = "tests/gunzip.rs"
[[test]]
name = "zero-write"
path = "tests/zero-write.rs"