Radar · Rust · Archive · Week 5 · Jan 27 – Feb 2, 2025
Rust 2024 in beta channel
Worth knowingtooling
- What changed
- The Rust team announced that the Rust 2024 edition is now available on the beta channel.
- Production impact
- The source does not say.
- Try it
- Install the beta toolchain with
rustup install betaand runrustc --edition=2024 --version. - Source
- blog.rust-lang.org/2025/01/22/rust-2024-beta.html
Understand it, then run it
Run it now
// This program demonstrates that the Rust 2024 edition is available on the beta channel.
// Compile with: rustc +beta --edition=2024 main.rs
fn main() {
// The 2024 edition introduces no new syntax that we can showcase here,
// but the program compiles successfully on the beta channel.
println!("Rust 2024 edition is now on the beta channel.");
}
What it printed when we ran it on Rust 1.98.1 (edition 2024)
Rust 2024 edition is now on the beta channel.
Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed