Skip to content

Commit

Permalink
Update changelog and readme, fix test for pre rust 1.57
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindln committed Feb 2, 2023
1 parent 37f6da1 commit d962c3e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
<a name="0.7.1"></a>
### 0.7.1 (2023-02-02)
* **inflate:**
* Fix for older versions of Rust (thanks jasonish) ([a65d0751](https://github.com/Frommi/miniz_oxide/commit/a65d0751f83c4e518cfecbf18e19de22692ae2b7))

<a name="0.7.0"></a>
### 0.7.0 (2023-02-01)

Yanked release

<a name="0.6.4"></a>
## 0.6.4 (2023-02-01)

Yanked release due to version requirement bump

* **inflate:**
* move debug assert condition to if stmt (thanks connorskees) ([b6d8824a](https://github.com/Frommi/miniz_oxide/commit/b6d8824a316522c292968f807c6455c1ec421bea))

<a name="0.6.3"></a>
## 0.6.3 (2023-02-01)

## Yanked release due to incorrect debug assertion.
Yanked release due to version requirement bump

#### Bug Fixes

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Pure rust replacement for the [miniz](https://github.com/richgel999/miniz) defla
This project is organized into a C API shell and a rust crate.
The Rust crate is found in the [miniz_oxide subdirectory](https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide).

miniz_oxide 0.5.x and 0.6.x Requires at least rust 1.40.0, 0.3.x requires at least rust 0.36.0.
miniz_oxide 0.7.x requires at least Rust 1.50.0
Older versions 0.5.x and 0.6.x require at least rust 1.40.0, 0.3.x requires at least rust 0.36.0.

For a friendlier streaming API using readers and writers, [flate2](https://crates.io/crates/flate2) can be used, which can use miniz_oxide as a rust-only back-end.

Expand Down
6 changes: 2 additions & 4 deletions miniz_oxide/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fn issue_75_empty_input_infinite_loop() {
fn issue_119_inflate_with_exact_limit() {
use miniz_oxide::inflate::{decompress_to_vec_zlib, decompress_to_vec_zlib_with_limit};

let compressed_data = [
let compressed_data = &[
120, 156, 237, 217, 65, 17, 194, 0, 16, 192, 192, 122, 193, 94, 13, 240, 232, 128, 12, 28,
160, 2, 53, 53, 130, 139, 220, 227, 118, 21, 228, 159, 227, 13, 0, 212, 126, 211, 1, 0,
176, 208, 99, 58, 0, 0, 22, 122, 78, 7, 0, 192, 66, 223, 233, 0, 0, 88, 200, 255, 5, 128,
Expand Down Expand Up @@ -193,8 +193,7 @@ fn issue_119_inflate_with_exact_limit() {
207, 255, 5, 128, 158, 255, 11, 0, 61, 255, 23, 0, 122, 254, 47, 0, 244, 252, 95, 0, 232,
249, 191, 0, 208, 243, 127, 1, 160, 231, 255, 2, 64, 207, 255, 5, 128, 158, 255, 11, 0, 61,
255, 23, 0, 122, 254, 47, 0, 244, 254, 53, 209, 27, 197,
]
.as_slice();
];

let decompressed_size = decompress_to_vec_zlib(compressed_data)
.expect("test is not valid, data must correctly decompress when not limited")
Expand All @@ -213,7 +212,6 @@ fn issue_119_inflate_with_exact_limit() {
fn issue_130_reject_invalid_table_sizes() {
let input = get_test_file_data("tests/test_data/issue_130_table_size.bin");


let result = decompress_to_vec_zlib(input.as_slice());
println!("{:?}", result);
assert!(result.is_err());
Expand Down

0 comments on commit d962c3e

Please sign in to comment.