Lines Matching full:zlib
10 available zlib library or the high-performance zlib-ng library.
15 * zlib
56 want maximum performance, you can use the zlib-ng C library:
60 flate2 = { version = "1.0.17", features = ["zlib-ng"], default-features = false }
63 Note that the `"zlib-ng"` feature works even if some other part of your crate
64 graph depends on zlib.
67 zlib, and you want to avoid including both zlib and zlib-ng, you can use that
72 flate2 = { version = "1.0.17", features = ["zlib"], default-features = false }
75 Or, if you have C or Rust code that depends on zlib and you want to use zlib-ng
76 via libz-sys in zlib-compat mode, use:
80 flate2 = { version = "1.0.17", features = ["zlib-ng-compat"], default-features = false }
83 Note that when using the `"zlib-ng-compat"` feature, if any crate in your
84 dependency graph explicitly requests stock zlib, or uses libz-sys directly
85 without `default-features = false`, you'll get stock zlib rather than zlib-ng.
88 To avoid that, use the `"zlib-ng"` feature instead.
91 version of zlib is available, via the `cloudflare_zlib` feature. It's not as
92 fast as zlib-ng, but it's faster than stock zlib. It requires an x86-64 CPU with
95 documentation](https://crates.io/crates/cloudflare-zlib-sys). Note that
97 uses another version of zlib/libz.