4 ms·
> No, editions require explicit activation and the "default" edition will remain forever at 2015, i.e. Rust 1.0. With the slight caveat that this is the "defau
by cesarb 5y ago
> No, editions require explicit activation and the "default" edition will remain forever at 2015, i.e. Rust 1.0.
With the slight caveat that this is the "default if not specified", but the default when creating a new project with "cargo new" is to specify the currently latest version on the generated Cargo.toml file.
That is, there are two defaults: the default for pre-edition projects (forever 2015), and the default for creating a new project (sets the project to what was the latest edition when the "cargo new" was run).
- dathinab 5y agoI believe it's not a caveat at all. I mean you can mix and match dependencies of different editions, and there are (IMHO) very few reasons to start a new project with an old editions. For that (IMHO) very few reasons you tend to be aware of you intentionally wanting to use a old version and as such it's not a problem. Through I would say there is no real default rust editions, it's more appropriate to say crates/libraries "keep" the rust edition they where created with until explicitly changed.