this post was submitted on 20 Feb 2025
48 points (100.0% liked)
Rust Programming
8438 readers
76 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Just upgraded ten or so smaller projects with no compile errors whatsoever. And then one larger project (probably 20k lines of code or so), which just had a few calls to
env::set_var()
that needed to be wrapped inunsafe
, as well as some uses ofref
in pattern-matching, which were apparently not needed, so I'm actually glad to be rid of those.Very happy with that overall. I was already worried, they might introduce too many breaking changes with how long they were working on this edition, but those worries just evaporated.
Be careful to not upgrade Libraries, as it implicitly bump the msrv ;)
Ah, I was just wondering, if I should be upgrading all my libraries. It's not like many users would be impacted, but still good to be aware of.
In general, apps/bins should strive for the latest msrv and lastest dependencies
Libraries should do the reverse and try for the lowest msrv and dependencies version (That actually work! Don't put
version = "1"
when you need1.4.2
!)