-
Notifications
You must be signed in to change notification settings - Fork 98
Description
Several issues, including my own I was about to create - are asking for exposing some specific configuration option for the implementations -
I was writing a 7z reader, which requires me to decode lzma using properties which are not in the stream - totally possible with lzma - but it just is not exposed to me in async-compression.
I had actually created a new branch that did this for just that codec - and a function to create the implementation with that stream - but then I saw several other issues of a similar nature so I reworked this to just expose codecs and offer the option to do this across the board.
main...jkushmaul:async-compression:expose_codecs
What I don't know, is if there is some reason to not expose the codecs mod. I can start the PR from that branch but I wanted to ask first.
The other issues this may, or may not help are:
-
!335
Configurable block size
I don't exactly understand what they are asking for, I imagine there is some option on bzip2 that allows this, there's no example so we'll never know. But if there were - rather than string that through in some way - just allow constructing the codec with the bzip2 struct...
-
!329 `Expose set_pledged_src_size as a public API for zstd compression
Similarly, If the underlying zstd struct already supports this - rather than string that through, just allow creating the codec right from one of these structs.
-
!324
factor out codec into a separate crate
Not exactly related - other than they are not exposed, so the issue exists.
Thanks for taking the time