Bump msrv to remove build script and workaround?
Debian trixie has switched to 1.86, and IIRC centos is 1.84
So once people start adopting debian trixie, serde could bump to 1.84, eliminating the build script, try! macro and a few other workarounds
That release is not even a year old. So far we've kept a much older msrv, so that everyone can update their serde dep no matter their rustc version. I hear there'll be a new edition sooner than in 3 years, so maybe when that is out we'll consider moving to the (at the time of writing this) current edition. Basically always supporting "the previous" edition.
Either way, it's unlikely we'll be able to remove the build script for some time, considering we'll likely add more things to be supported by newer rustc versions in the future
Isn't there a plan for cfg(version("")), once it is stablised and msrv bumped to it (maybe after 5 years), we won't need a build script?
https://doc.rust-lang.org/beta/unstable-book/language-features/cfg-version.html
As for serde_core, there have been cases such as providing Serialize/Deserialize implementations for the recently stabilized APIs, so removing the build script from serde_core doesn't seem very reasonable at this time (even if we could remove it once by MSRV bump, we'd likely need to re-add it again soon.).
On the other hand, as for serde, bumping MSRV to 1.61 that the same as serde_derive will eliminate the need for the build script.
Good to hear at least serde can get rid of build script!
so removing the build script from serde_core doesn't seem very reasonable at this time
Yeah...if cfg(version("..")) is stablised and msrv is high enough to use that, then maybe serde-core could also get rids of that.