1 | [package] |
2 | name = "flate2" |
3 | authors = ["Alex Crichton <alex@alexcrichton.com>" , "Josh Triplett <josh@joshtriplett.org>" ] |
4 | version = "1.0.28" |
5 | edition = "2018" |
6 | license = "MIT OR 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 and multiple zlib implementations. Supports zlib, gzip, |
16 | and raw deflate streams. |
17 | " "" |
18 | |
19 | [dependencies] |
20 | libz-sys = { version = "1.1.8" , optional = true, default-features = false } |
21 | libz-ng-sys = { version = "1.1.8" , optional = true } |
22 | cloudflare-zlib-sys = { version = "0.3.0" , optional = true } |
23 | miniz_oxide = { version = "0.7.1" , optional = true, default-features = false, features = ["with-alloc" ] } |
24 | crc32fast = "1.2.0" |
25 | |
26 | [target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies] |
27 | miniz_oxide = { version = "0.7.1" , default-features = false, features = ["with-alloc" ] } |
28 | |
29 | [dev-dependencies] |
30 | rand = "0.8" |
31 | quickcheck = { version = "1.0" , default-features = false } |
32 | |
33 | [features] |
34 | default = ["rust_backend" ] |
35 | any_zlib = ["any_impl" ] # note: this is not a real user-facing feature |
36 | any_impl = [] # note: this is not a real user-facing feature |
37 | zlib = ["any_zlib" , "libz-sys" ] |
38 | zlib-default = ["any_zlib" , "libz-sys/default" ] |
39 | zlib-ng-compat = ["zlib" , "libz-sys/zlib-ng" ] |
40 | zlib-ng = ["any_zlib" , "libz-ng-sys" ] |
41 | cloudflare_zlib = ["any_zlib" , "cloudflare-zlib-sys" ] |
42 | rust_backend = ["miniz_oxide" , "any_impl" ] |
43 | miniz-sys = ["rust_backend" ] # For backwards compatibility |
44 | |
45 | [package.metadata.docs.rs] |
46 | all-features = true |
47 | rustdoc-args = ["--cfg" , "docsrs" ] |
48 | |