🌉 bridged from @sgued@programming.dev by Tidepool
Sosthène Guédon
@sgued.programming.dev.ap.tdpl.io
programming PostgreSQL 19 Released!
0 0Finally, a built-in insert and return old value ! It's insane that IR took so long.
rust The semver trick is not backwards compatible if you wait
0 0The example I give is with 0.1.0 0 .2.0 and 0.1.1, but all the examples I give work with respectively 1.0.0, 2.0.0 and 1.1.0
rust The semver trick is not backwards compatible if you wait
0 0I didn't say people don't make an effort to follow minor vs patch. I said people don't rely on it.
rust The semver trick is not backwards compatible if you wait
1 1Why? On the contrary, in my experience cargo update is more reliable than the equivalent in any other language.
rust The semver trick is not backwards compatible if you wait
1 0That's smart thanks!
Still, you have to think about it just as you publish, and you can't "do the semver trick" sometime later.
rust The semver trick is not backwards compatible if you wait
2 1Why do you have to be so aggressive?
rust The semver trick is not backwards compatible if you wait
0 1That would indeed be a significant change, but only matter when you run cargo update. Pretty much no-one in the Rust ecosystem relies on the distinction between minor and patch version releases. Serde (and all of dtolnay's stuff) famously only publish
major.0.minorversion numbers.rust Mutex poisoning is not for everyone
0 0There are valid reasons to want to catch panics. The N°1 usage of catch_panic are testing tools. But even then, in a low-stakes web server for example, it can make sense to catch panics to return a 500, and it's unlikely that a panic would lead to corrupted state outside of a poisonned mutex, so keeping running can make sense.