Thiébaud Weksteen | 3134895 | 2021-05-11 14:08:42 +0200 | [diff] [blame] | 1 | [package] |
| 2 | name = "flate2" |
| 3 | authors = ["Alex Crichton <alex@alexcrichton.com>", "Josh Triplett <josh@joshtriplett.org>"] |
Joel Galenson | 9742830 | 2021-09-22 10:54:49 -0700 | [diff] [blame] | 4 | version = "1.0.22" |
Thiébaud Weksteen | 3134895 | 2021-05-11 14:08:42 +0200 | [diff] [blame] | 5 | edition = "2018" |
| 6 | license = "MIT/Apache-2.0" |
| 7 | readme = "README.md" |
| 8 | keywords = ["gzip", "deflate", "zlib", "zlib-ng", "encoding"] |
| 9 | categories = ["compression", "api-bindings"] |
| 10 | repository = "https://github.com/rust-lang/flate2-rs" |
| 11 | homepage = "https://github.com/rust-lang/flate2-rs" |
| 12 | documentation = "https://docs.rs/flate2" |
| 13 | description = """ |
| 14 | DEFLATE compression and decompression exposed as Read/BufRead/Write streams. |
| 15 | Supports miniz_oxide, miniz.c, and multiple zlib implementations. Supports |
| 16 | zlib, gzip, and raw deflate streams. |
| 17 | """ |
| 18 | |
| 19 | [workspace] |
| 20 | members = ['systest'] |
| 21 | |
| 22 | [dependencies] |
| 23 | libc = "0.2.65" |
| 24 | cfg-if = "1.0.0" |
| 25 | miniz-sys = { path = "miniz-sys", version = "0.1.11", optional = true } |
| 26 | libz-sys = { version = "1.1.0", optional = true, default-features = false } |
Joel Galenson | 9742830 | 2021-09-22 10:54:49 -0700 | [diff] [blame] | 27 | cloudflare-zlib-sys = { version = "0.3.0", optional = true } |
Thiébaud Weksteen | 3134895 | 2021-05-11 14:08:42 +0200 | [diff] [blame] | 28 | tokio-io = { version = "0.1.11", optional = true } |
| 29 | futures = { version = "0.1.25", optional = true } |
| 30 | miniz_oxide = { version = "0.4.0", optional = true, default-features = false } |
| 31 | crc32fast = "1.2.0" |
| 32 | |
| 33 | [target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies] |
| 34 | miniz_oxide = { version = "0.4.0", default-features = false } |
| 35 | |
| 36 | [dev-dependencies] |
| 37 | rand = "0.7" |
| 38 | quickcheck = { version = "0.9", default-features = false } |
| 39 | tokio-io = "0.1.11" |
| 40 | tokio-tcp = "0.1.3" |
| 41 | tokio-threadpool = "0.1.10" |
| 42 | futures = "0.1" |
| 43 | |
| 44 | [features] |
| 45 | default = ["rust_backend"] |
| 46 | any_zlib = [] # note: this is not a real user-facing feature |
| 47 | zlib = ["any_zlib", "libz-sys"] |
| 48 | zlib-ng-compat = ["zlib", "libz-sys/zlib-ng"] |
| 49 | cloudflare_zlib = ["any_zlib", "cloudflare-zlib-sys"] |
| 50 | rust_backend = ["miniz_oxide"] |
| 51 | tokio = ["tokio-io", "futures"] |