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
[–] [email protected] 9 points 1 week ago (7 children)

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 in unsafe, as well as some uses of ref 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.

[–] RustyNova 3 points 1 week ago (1 children)

Be careful to not upgrade Libraries, as it implicitly bump the msrv ;)

[–] [email protected] 3 points 1 week ago (1 children)

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.

[–] RustyNova 2 points 1 week ago

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 need 1.4.2!)

load more comments (5 replies)