Rust 1.95.0 arrives with cfg_select! and match let-chains

April 16, 2026
Close-up of a rusty padlock on an old wooden door, showing texture and decay.
Photo by Hakan Karagöz on Pexels

A small bump, a noticeable nudge

The Rust project has released version 1.95.0. If you already use rustup, getting the new toolchain is a one-liner — rustup will do the heavy lifting. Want to help shape the next release? Switch to the beta or nightly channels and poke around; they’re asking for bug reports. Community testing matters. It really does.

New features: cfg_select! and let-chains in match

The headline feature is a new cfg_select! macro — a compile-time, cfg-based selector that expands to the right-hand side of the first arm whose predicate is true. Think of it as a built-in cousin to the popular cfg-if crate, but with a different syntax. Curious how it compares in ergonomics? Try it and judge for yourself. Rust 1.95 also brings the expressive power of let chains into match expressions, extending the convenience stabilized in Rust 1.88 to more pattern-heavy code. Small changes, but they tidy up a lot of real-world clutter.

Compatibility, const stabilization, and targets

Several previously stable APIs are now explicitly stable in const contexts, broadening what you can do at compile time. On the other side of the ledger, Rust 1.95 removes support on stable for passing a custom target specification to rustc. The release notes emphasize this should not affect most stable users — building the standard library already required nightly features — but the team is collecting use cases on a tracking issue to decide whether some version of custom targets belongs in the future. Pragmatic trade-offs, not drama.

Community and next steps

This release is the work of many contributors. The announcement thanks the community — and it’s genuine. Check the detailed release notes for full changelogs for Rust, Cargo, and Clippy. Want to help shape the language? Try the beta/nightly channels, report bugs, and join the conversation. After all, Rust has always been a community language; this release is another small victory for that shared effort.

Sources: blog.rust-lang.org, Lobsters