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