Rust 2024 in beta channel
The next edition, Rust 2024, has entered the beta channel. It will live there until 2025-02-20, when Rust 1.85 and Rust 2024 will be released as stable.
We're really happy with how Rust 2024 has turned out, and we're looking forward to putting it in your hands.
You can get a head start in preparing your code for the new edition, and simultaneously help us with final testing of Rust 2024, by following these steps within a project:
- Run
rustup update beta
. - Run
cargo update
. - Run
cargo +beta fix --edition
. - Set
edition = "2024"
and, if needed,rust-version = "1.85"
, inCargo.toml
. - Run
cargo +beta check
, address any remaining warnings, and then run other tests.
More details on how to migrate can be found here and within each of the chapters describing the changes in Rust 2024. For more on the changes themselves, see the Edition Guide.
If you encounter any problems or see areas where we could make the experience better, tell us about it by filing an issue.