Frommi / miniz_oxide

Rust replacement for miniz
MIT License
168 stars 48 forks source link

Allow for running without allocator (inflate-only) #117

Closed mkeeter closed 2 years ago

mkeeter commented 2 years ago

This PR adds a with-alloc feature to miniz_oxide, which is turned on by default and enables alloc-dependent functionality when active.

This allows us to specify default-features = false and use the crate in a system without an allocator!

oyvindln commented 2 years ago

Merging, but if there isn't big demand for it yet (and you won't be using it after all) I'm going to wait a bit with publishing as there may be some other things in the API we would want to tweak if there is going to be a version break anyhow.