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

Rust

7121 readers
1 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Rogue@feddit.uk 2 points 4 months ago (1 children)

it's configurable per-crate, not per-compilation. So you can depend on crates that use different editions than your crate. Which avoids ecosystem fragmentation.

Thanks! That pre-empted my next question of how quickly crates typically update to newer editions. I guess it doesn't matter

[โ€“] taladar@sh.itjust.works 3 points 4 months ago

There is also cargo fix --edition which can update your code in a very conservative way automatically. The result might not be as idiomatic but errs on the side of having semantics that do not change.