Skip to content

Conversation

@fintelia
Copy link
Contributor

@fintelia fintelia commented Jul 20, 2025

This PR adds tests of the various flush kinds to ensure that all backends implement them consistently. The cases are carefully constructed so that even quite different backend implementations are likely to produce the expected output. In particular, it counts on the encoder detecting when the input is/isn't compressible and writing either compressed or stored blocks accordingly.

Tests pass for me with the zlib, zlib-ng, zlib-rs and cloudflare_zlib backends. The miniz_oxide backend requires Frommi/miniz_oxide#179 as otherwise it treats partial flushes as "no flush" (!)

@Byron
Copy link
Member

Byron commented Dec 9, 2025

Could we get this done towards the end of the year? Maybe it works now if the PR was rebased?

@Byron Byron added the question label Dec 9, 2025
Comment on lines +115 to +117

[patch.crates-io]
miniz_oxide = { git = "https://github.com/Frommi/miniz_oxide", branch = "master" }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing left should be getting a miniz_oxide 0.8.10 release, so this patch isn't necessary for the tests to pass

@Byron
Copy link
Member

Byron commented Dec 9, 2025

Right, thanks a lot!

I think I may have asked @oyvindln that before and apologise this question is redundant or repetitive, but given my ignorance, is a release of miniz_oxide in the cards till the end of the year? Thanks (and sorry) again.

@oyvindln
Copy link
Contributor

oyvindln commented Dec 9, 2025

Yeah I'm hoping to get something out before the end of the year, just need to resolve a few small things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants