dropbox / rust-brotli

Brotli compressor and decompressor written in rust that optionally avoids the stdlib
https://dropbox.tech/infrastructure/-broccoli--syncing-faster-by-syncing-less
BSD 3-Clause "New" or "Revised" License
812 stars 83 forks source link

Use bool instead of i32 #205

Closed nyurik closed 4 months ago

nyurik commented 4 months ago

For public API, add a deprecated attribute, but the replacement function is NOT being made public just yet. In the future, we should review and drastically reduce the public API - this crate should only expose what's needed, rather than expose everything and be responsible to keep the internal structure intact.

Additionally, reworked ShouldCompress and UTF8 parsing