this post was submitted on 20 Feb 2025
52 points (100.0% liked)

Rust Programming

8871 readers
1 users here now

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Ephera@lemmy.ml 12 points 4 months ago (10 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.

[–] BB_C@programming.dev 3 points 4 months ago (6 children)

Just upgraded

Weird wording!
Maybe it's just me, but this may give the impression that it's something that is strictly needed, or will provide any immediate improvement, which is not the case, unless you're still actively working on these projects and plan to use/depend on features/behaviors required by the new edition.

[–] thingsiplay@beehaw.org 2 points 4 months ago (2 children)

That's the case with every software updates. Upgrading just means that you jumped to the newer version. Like upgrading to the newest Firefox won't give everyone the same benefit instantly, but its an upgrade in version nonetheless (as an analogy to Rust version).

[–] BB_C@programming.dev 1 points 4 months ago (1 children)

That's exactly the communicated meaning I was concerned an oblivious reader might get. You can use an updated Rust compiler 10 years in the future while your crate is still on 2015/2018/2021 edition. Editions are NOT software versions.

[–] thingsiplay@beehaw.org 2 points 4 months ago

I think you misunderstand the point here. The upgrade in this case means a plus in version number, that's what is said here. I was not implying that older versions of Rust Editions get obsolete.

load more comments (3 replies)
load more comments (6 replies)