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