Developer Tools3 min read
Rust 1.95.0 Stabilizes cfg_select!, If-Let Guards, and Atomic Update APIs
Tags Developer Tools ยท OSS
Rust Blog ยท releases.rsยท

Rust 1.95.0, released April 16, 2026, stabilizes the cfg_select! macro for compile-time conditional compilation matching (similar to the cfg-if crate but built-in), if-let guards in match expressions (building on let chains from Rust 1.88), and AtomicBool/Isize/Usize::update and try_update methods. Also stabilized: core::range::RangeInclusive, fmt::from_fn in const contexts, and ControlFlow::is_break/is_continue in const contexts. The current track is Stable 1.95.0, Beta 1.96.0 (target May 28), Nightly 1.97.0 (target July 9).