Skip to content

[pull] master from Frommi:master#2

Open
pull[bot] wants to merge 212 commits intomesalock-linux:masterfrom
Frommi:master
Open

[pull] master from Frommi:master#2
pull[bot] wants to merge 212 commits intomesalock-linux:masterfrom
Frommi:master

Conversation

@pull
Copy link

@pull pull bot commented Jan 31, 2020

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added the ⤵️ pull label Jan 31, 2020
@pull pull bot added the merge-conflict Resolve conflicts manually label Feb 19, 2020
oyvindln and others added 23 commits March 1, 2020 21:59
Fixed bug causing an infinite loop when compress_to_vec was called with empty or 1-length input.

Closes #75
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
* 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.
oyvindln and others added 25 commits April 8, 2025 18:57
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⤵️ pull merge-conflict Resolve conflicts manually

Projects

None yet

Development

Successfully merging this pull request may close these issues.