-
Notifications
You must be signed in to change notification settings - Fork 97
Separate codecs as a separate crate, allow direct configuration #363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate codecs as a separate crate, allow direct configuration #363
Conversation
I used my fork - so main a commit behind, I rebased, next push will be up to date. What I really need help on though - is docs... I've never contributed to anything on crates.io so I don't know the level to which I need to add docs on each exposed struct or function. |
703bb4f
to
0653a4d
Compare
I just removed the restriction, the tests work fine on windows (after fixing the import I missed due to the cfg not windows) - maybe there was a good reason to not, but seems OK. |
CI failed in test_lzma_decoder_from_params, seems like a new test function Edit: I think using Xz2Decoder::try_from(params).unwrap(); would give us more detail in error message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, just few feedback
Thanks for the feedback - yeah I hit two issues I found what all these other ones are running in the github actions and was able to reproduce locally - going through those now After that, I'll look at the re-export comments and the other ones you left, thanks for those. That's the kind of stuff I expected to have problems with having never published a crate, this is good for me. |
0653a4d
to
c75eb4a
Compare
Interesting.. Locally - windows -
And for the wasm32 - not sure there but maybe related - this might be why the |
You can try WSL2, which uses a lite linux VM, to run tests on linux For wasm, AFAIK right now no way of running tests for it |
4a6780f
to
1f994a6
Compare
Let me know if you want me to resolve those, I usually leave the resolve to the reviewer, is why I have not myself already. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Just minor nit on the doc, plus clamping of the compression level (we probably want to clamp all of them)
1f994a6
to
f6886ff
Compare
f6886ff
to
62c5e05
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tolerating me through all of that also, I'm sure you don't have a lot of time but it was helpful to me. |
https://crates.io/crates/compression-core https://crates.io/crates/compression-codecs cc @Nemo157 @yoshuawuyts @robjtede I've invited you to the new crates |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #363 +/- ##
===========================
===========================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
0.4.28 released for all crates cc @jkushmaul |
You made that super easy for me to get through, Thanks! I've updated my own crates (which required the custom lzma options). My tests were already using the git+branch but now with the official crates versions all my tests still passing there as well. I did not have to update any signatures - other than the new signatures available to me which was nice too. |
Good to hear that everything works well without any issue! Hopefully this will also reduce compilation time since codegen of codecs can be done in parallel to async-compression |
Seems like we do have a duplicate |
I understand the general concept, a compile performance issue but as far as what to look for I'm not sure I follow about the duplicate buf_write bit - I tested with the same command you used above, with
The total time was about the same - I know this was about codegen but the limits of what I know was to just look at the totals. I'm not sure I can fix this quickly unless someone else has already quickly fixed it perhaps - I see a couple new releases with larger refactor - maybe that was to address this issue? If you need me to fix this, I'm all for it but my speed probably won't be what you would want, if someone else can (or has) fixed it that'd probably be better for you |
Hmmm actually any refactoring that fan simplify the codebase is good. I've put together #377 just not sure if it's the right approach and I'd want robjtede to have a look at it |
compression-codecs
crate to retain git historywith_codec
option to all impl as an alternativeFixes #324, #359