-
Notifications
You must be signed in to change notification settings - Fork 59
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
Upgrade zstd to ^0.9 #31
Conversation
Do we require the latest version of zstd? My understanding is that, for libraries, we should place the minimum version and maximum version we know to accept, and let cargo/consumers handle the resolution to the latest. E.g. this is backward incompatible because it requires dependents to now use at least 0.9? Since we seem to support |
Zstd (the format) is stable. The changes in the encoder/decoder are mainly performance improvements and fixes |
(I meant If someone writes |
That's true. We don't expose the API of the zstd crate AFAIK, so a user is still free to choose an older version of zstd, it will appear twice with different versions in their dependency tree. It depends on how the other library is using zstd However, I am not sure whether it's a good idea to also keep depending on an older version here. |
https://github.com/facebook/zstd/releases Performance differences of new versions are quite large btw, compression speed and decompression speed improved significantly in the latest release. |
Codecov Report
@@ Coverage Diff @@
## main #31 +/- ##
=======================================
Coverage 68.92% 68.92%
=======================================
Files 61 61
Lines 3321 3321
=======================================
Hits 2289 2289
Misses 1032 1032 Continue to review full report at Codecov.
|
Thanks a lot, @Dandandan for the explanation. I left a thread on Rust users to get some opinions on this, but it is not blocking; like you said, the perf improvements are massive. |
just for reference what you proposed is indeed the cargo way: https://users.rust-lang.org/t/how-to-declare-dependencies-in-cargo-without-cascading-effects/62958/5?u=jorgecarleitao . 👍 |
Upgrade zstd a couple of versions