• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2name = "flate2"
3authors = ["Alex Crichton <alex@alexcrichton.com>", "Josh Triplett <josh@joshtriplett.org>"]
4version = "1.0.20"
5edition = "2018"
6license = "MIT/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, miniz.c, and multiple zlib implementations. Supports
16zlib, gzip, and raw deflate streams.
17"""
18
19[workspace]
20members = ['systest']
21
22[dependencies]
23libc = "0.2.65"
24cfg-if = "1.0.0"
25miniz-sys = { path = "miniz-sys", version = "0.1.11", optional = true }
26libz-sys = { version = "1.1.0", optional = true, default-features = false }
27cloudflare-zlib-sys = { version = "0.2.0", optional = true }
28tokio-io = { version = "0.1.11", optional = true }
29futures = { version = "0.1.25", optional = true }
30miniz_oxide = { version = "0.4.0", optional = true, default-features = false }
31crc32fast = "1.2.0"
32
33[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
34miniz_oxide = { version = "0.4.0", default-features = false }
35
36[dev-dependencies]
37rand = "0.7"
38quickcheck = { version = "0.9", default-features = false }
39tokio-io = "0.1.11"
40tokio-tcp = "0.1.3"
41tokio-threadpool = "0.1.10"
42futures = "0.1"
43
44[features]
45default = ["rust_backend"]
46any_zlib = [] # note: this is not a real user-facing feature
47zlib = ["any_zlib", "libz-sys"]
48zlib-ng-compat = ["zlib", "libz-sys/zlib-ng"]
49cloudflare_zlib = ["any_zlib", "cloudflare-zlib-sys"]
50rust_backend = ["miniz_oxide"]
51tokio = ["tokio-io", "futures"]
52