File tree 2 files changed +18
-6
lines changed
2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 6
6
[ ![ Documentation] ( https://docs.rs/flate2/badge.svg )] ( https://docs.rs/flate2 )
7
7
8
8
A streaming compression/decompression library for Rust. The underlying
9
- implementation by default uses [ ` miniz ` ] ( https://code.google. com/p /miniz/ ) but
9
+ implementation by default uses [ ` miniz ` ] ( https://github. com/richgel999 /miniz ) but
10
10
can optionally be configured to use the system zlib, if available.
11
11
12
+ There is also an experimental rust backend that uses the
13
+ [ ` miniz_oxide ` ] ( https://crates.io/crates/miniz_oxide ) crate. This avoids the need
14
+ to build C code, but hasn't gone through as much testing as the other backends.
15
+
12
16
Supported formats:
13
17
14
18
* deflate
@@ -28,6 +32,13 @@ Using zlib instead of miniz:
28
32
flate2 = { version = " 0.2" , features = [" zlib" ], default-features = false }
29
33
```
30
34
35
+ Using the rust back-end:
36
+
37
+ ``` toml
38
+ [dependencies ]
39
+ flate2 = { version = " 0.2" , features = [" rust_backend" ], default-features = false }
40
+ ```
41
+
31
42
## Compression
32
43
33
44
``` rust
Original file line number Diff line number Diff line change 1
1
//! A DEFLATE-based stream compression/decompression library
2
2
//!
3
- //! This library is meant to supplement/replace the standard distributon's
4
- //! libflate library by providing a streaming encoder/decoder rather than purely
3
+ //! This library is meant to supplement/replace the
4
+ //! `flate` library that was previously part of the standard rust distribution
5
+ //! providing a streaming encoder/decoder rather than purely
5
6
//! an in-memory encoder/decoder.
6
7
//!
7
- //! Like with [`libflate `], flate2 is based on [`miniz.c`][1]
8
+ //! Like with [`flate `], flate2 is based on [`miniz.c`][1]
8
9
//!
9
- //! [1]: https://code.google. com/p /miniz/
10
- //! [`libflate `]: https://docs.rs/crate/libflate/
10
+ //! [1]: https://github. com/richgel999 /miniz
11
+ //! [`flate `]: https://github.com/rust-lang/rust/tree/1.19.0/src/libflate
11
12
//!
12
13
//! # Organization
13
14
//!
You can’t perform that action at this time.
0 commit comments