File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,17 @@ fn main() {
67
67
68
68
## Backends
69
69
70
- The default ` miniz_oxide ` backend has the advantage of being pure Rust. If you
71
- want maximum performance, you can use the zlib-ng C library:
70
+ The default ` miniz_oxide ` backend has the advantage of being pure Rust.
71
+
72
+ If you want maximum performance while still benefiting from a pure rust
73
+ implementation, you can use ` zlib-rs ` :
74
+
75
+ ``` toml
76
+ [dependencies ]
77
+ flate2 = { version = " 1.0.17" , features = [" zlib-rs" ], default-features = false }
78
+ ```
79
+
80
+ Or, you can use the zlib-ng C library:
72
81
73
82
``` toml
74
83
[dependencies ]
Original file line number Diff line number Diff line change 20
20
//! crate which is a port of `miniz.c` (below) to Rust. This feature does not
21
21
//! require a C compiler and only requires Rust code.
22
22
//!
23
+ //! * `zlib-rs` - this implementation utilizes the `zlib-rs` crate, a pure rust rewrite of zlib.
24
+ //! This backend is faster than both `rust_backend` and `zlib`. However, we did not set it as the
25
+ //! default choice to prevent compatibility issues.
26
+ //!
23
27
//! * `zlib` - this feature will enable linking against the `libz` library, typically found on most
24
28
//! Linux systems by default. If the library isn't found to already be on the system it will be
25
29
//! compiled from source (this is a C library).
You can’t perform that action at this time.
0 commit comments