Closed piodul closed 3 years ago
This also breaks SQLx
es bigdecimal support. The problem is that bigdecimal 0.2.1 upgraded num-bigint, a public dependency, to an semver-incompatible version in a patch release.
@akubera please yank 0.2.1
yanked
So would this be fixed by re-releasing as 0.3.0?
Yes, if you release as 0.3.0 this won't happen again.
I'm going to roll back num-bigint
to "0.3", push that as bigdecimal-0.2.*2*
, then bump the number back to 0.4
and release 0.3.0
.
Also, I'll expose num-{bigint,traits}
as modules in the root of bigdecimal.
Please let me know if there's any objections to this.
If you have changes independent of the version bump that made 0.2.1 useful then sure, releasing without the num-bigint version bump as 0.2.2 makes sense. I don't think you need to release another 0.2.x to get people un-broken though, yanking should have been enough (the people who have a broken lockfile now are more likely to roll it back or figure out what's wrong and fix it rather than running cargo update
again after some time I think).
Also, I'll expose
num-{bigint,traits}
as modules in the root of bigdecimal.
Just to be clear, you're not expecting this to allow you to bump in patch releases in the future, right?
Just to be clear, you're not expecting this to allow you to bump in patch releases in the future, right?
Absolutely not.
It's more of a convenience so folks don't have to worry about updating in-step with bigdecimal if it is their only dependency which depends on num-bigint.
Two new releases. This time it should work.
I confirm that scylla
builds correctly with bigdecimal
0.2.2. Thanks for the quick response!
This code used to compile with version
0.2.0
:...but no longer does after update to
0.2.1
and fails with the following error:This broke the build of the
scylla
crate: https://github.com/scylladb/scylla-rust-driver/issues/286