Releases: AronParker/brotlic
0.8.2
0.8.1
- Add compress_estimate_max_mem_usage
0.8.0
This release removes allocator support because it suffers from several issues:
-
It misuses the GlobalAlloc trait as opposed to the Allocator api to remain stable. The allocator API would be the best fit but it is currently unstable.
-
Secondly it uses a double Box to pass the GlobalAlloc trait object, because trait objects are fat pointers and across FFI boundaries for the brotli API only thin pointers are accepted. This would be more efficiently done using a ThinBox, which would only allocate once instead of twice.
-
Performance improvements are negligible
I plan to readd support later under a feature gate. Preferably once the required primitives are stabilized.
0.7.0
This release adds custom memory allocator support. Currently it is based on the GlobalAlloc
trait. This is subject to change when the allocator_api
gets stabilized.
The following new APIs were added:
DecompressorReader<R>::new_in
CompressorReader<R>::new_in
CompressorWriter<W>::new_in
DecompressorWriter<W>::new_in
BrotliDecoder::new_in
BrotliEncoder::new_in
BrotliDecoderOptions::build_in
BrotliEncoderOptions::build_in