[pull] master from Frommi:master#2
Open
pull[bot] wants to merge 212 commits intomesalock-linux:masterfrom
Open
[pull] master from Frommi:master#2pull[bot] wants to merge 212 commits intomesalock-linux:masterfrom
pull[bot] wants to merge 212 commits intomesalock-linux:masterfrom
Conversation
Fixes #72
Fixed bug causing an infinite loop when compress_to_vec was called with empty or 1-length input. Closes #75
This reverts commit 8577636.
Fixed bug causing an infinite loop when compress_to_vec was called with empty or 1-length input. Closes #75
Attempt to fix overflow panic when calling compress with a >4GB large slice. (#74)
Add changelog using clog fixes #71
* Flag `miniz_oxide` as a `#![no_std]` library This commit conversion the `miniz_oxide` crate to a `#![no_std]` library, and is as a result a breaking change for the library. Currently the only dependency on the `std` crate is the `std::io::Cursor` type, which is pretty easily replaced with a `usize` parameter in a few locations. The goal of this commit is to eventually enable this library to be included into the standard library itself. Dependencies of the standard library can't depend on the standard library as well! The reason for including this in the standard library is that the `backtrace` crate wants to decompress DWARF information in executables, which can be compressed with zlib. * Update with annotations to build in libstd
* Add support for limiting output size when decompressing to Vec * Document the new functions
* Introduce reset policy to control InflateState::reset * Update comments per request
Badges
* feat: automatic `alloc` detection * fix: leave the feature in for compatibility
chore: Fix travis link in readme
* Increase the license options. * Rename license to be the MIT license * Add text of the new licenses. * remove the appendix. * Move the changes to just the intended crate.
This is because of a geiger issue geiger-rs/cargo-geiger#82
Since [1], this will come automatically from `rustc-std-workspace-core` and the crates.io dependency should no longer be specified. [1]: rust-lang/rust#141993
* Add decompress_with_limit to handle ring buffers * Add documentation about wrapping buffers
…on level after start - Don't bother updating hash table when doing stored compression, optimize for the more common use case over a very slight decrease in compression ration in the extreme niche case of changing from stored to non-stored after starting compression - disallow changing compression level from stored/rle to anything higher after init if zlib is used to avoid window size header being wrong - add test for changing compression after starting compression
* Allow cloning CompressorOxide - Purpose is provisional flushing: clone, flush to measure output, then drop and revert to the original instance before the flush * Tighten up flush behaviour - Make the code not output a block if there is no data to output - Add new flush modes that don't add a sync sequence if the stream is already on a byte boundary - Add a "no-sync" flush mode that flushes without a sync - Test correct behaviour of all flush modes --------- Co-authored-by: Jim Peters <jim@uazu.net>
Co-authored-by: kriskras99 <admin@kriskras99.nl>
avoids api breakage in the future also ignore flush test as it's very slow + change assert to debug assert
- Recent flush change broke zlib header handling in case of sync at start of a stream - Fixed and tests added Co-authored-by: Jim Peters <jim@uazu.net>
…186) Co-authored-by: Jim Peters <jim@uazu.net>
…de and make flag creation function const
automatically also clarify docs a bit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )