
Rust 1.95 brings the new cfg_select! macro that serves the same purpose as the cfg-if crate. This cfg_select! acts similar to a compie-time match on cfg's.
Rust 1.95 also adds in if-let guards into match expressions, stabilizes a number of APIs, and various other changes.
The Linux kernel for its part has already been preparing for Rust 1.95 .
More details on the Rust 1.95 changes can be found via the announcement on Rust-Lang.org .