Open Niedzwiedzw opened 2 years ago
I have also considered feature flag given that this changes the API a bit, I'll leave it up to your judgement
That's a breaking change. Your API functions have different params. I would suggest:
LzmaDecoder::new
to maybe LzmaDecoder::new_with_options
allow_trailing_bytes
to allow_trailing_bytes_lzma
since it's not effective for LZMA2 and XZOptions
into LzmaOptions
from StreamOptions
Pull Request Overview
it allows for user to ignore trailing bytes, which made the crate unusable for me personally
Testing Strategy
This pull request was tested by...
.lzma
,.lzma2
,.xz
files).