diff --git a/CHANGELOG.md b/CHANGELOG.md index cb80ddb..186e18a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,25 @@ + +### 0.7.1 (2023-02-02) +* **inflate:** + * Fix for older versions of Rust (thanks jasonish) ([a65d0751](https://github.com/Frommi/miniz_oxide/commit/a65d0751f83c4e518cfecbf18e19de22692ae2b7)) + + +### 0.7.0 (2023-02-01) + +Yanked release + ## 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)) ## 0.6.3 (2023-02-01) -## Yanked release due to incorrect debug assertion. +Yanked release due to version requirement bump #### Bug Fixes diff --git a/README.md b/README.md index e281ae3..7f92669 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/miniz_oxide/tests/test.rs b/miniz_oxide/tests/test.rs index 043149d..7a62a8c 100644 --- a/miniz_oxide/tests/test.rs +++ b/miniz_oxide/tests/test.rs @@ -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, @@ -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") @@ -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());