diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:32 +0000 |
commit | 4547b622d8d29df964fa2914213088b148c498fc (patch) | |
tree | 9fc6b25f3c3add6b745be9a2400a6e96140046e9 /vendor/miniz_oxide-0.4.0/Readme.md | |
parent | Releasing progress-linux version 1.66.0+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-4547b622d8d29df964fa2914213088b148c498fc.tar.xz rustc-4547b622d8d29df964fa2914213088b148c498fc.zip |
Merging upstream version 1.67.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/miniz_oxide-0.4.0/Readme.md')
-rw-r--r-- | vendor/miniz_oxide-0.4.0/Readme.md | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/vendor/miniz_oxide-0.4.0/Readme.md b/vendor/miniz_oxide-0.4.0/Readme.md deleted file mode 100644 index 30ca67985..000000000 --- a/vendor/miniz_oxide-0.4.0/Readme.md +++ /dev/null @@ -1,22 +0,0 @@ -# miniz_oxide - -A pure rust replacement for the [miniz](https://github.com/richgel999/miniz) DEFLATE/zlib encoder/decoder. -The main intention of this crate is to be used as a back-end for the [flate2](https://github.com/alexcrichton/flate2-rs), but it can also be used on it's own. Using flate2 with the ```rust_backend``` feature provides an easy to use streaming API for miniz_oxide. - -Requires at least rust 1.34. - -## Usage -Simple compression/decompression: -```rust - -extern crate miniz_oxide; - -use miniz_oxide::inflate::decompress_to_vec; -use miniz_oxide::deflate::compress_to_vec; - -fn roundtrip(data: &[u8]) { - let compressed = compress_to_vec(data, 6); - let decompressed = decompress_to_vec(decompressed.as_slice()).expect("Failed to decompress!"); -} - -``` |