Radar · Rust · Archive · Week 16 · Apr 13 – 19, 2026
Rust 1.95.0 Release
Worth knowingtooling
- What changed
- The Rust team announced the release of Rust 1.95.0.
- Production impact
- The source does not say.
- Try it
- Run
rustc --versionto verify you are on 1.95.0. - Source
- blog.rust-lang.org/2026/04/16/Rust-1.95.0/
Understand it, then run it
Rust 1.95.0 adds a new macro called cfg_select!. It lets you write a series of conditional blocks that are chosen at compile time, similar to a match on configuration flags. Instead of writing several #[cfg(...)] attributes, you write one cfg_select! block and the compiler picks the first arm whose condition is true. The macro expands to the code inside that arm, so you can define functions or constants that differ between platforms or architectures.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed