2026-04-16 13:29 UTC
The `cfg_select` macro is finally stable in today's rust 1.95 release
https://blog.rust-lang.org/2026/04/16/Rust-1.95.0/
It's a flexible way of picking an implementation based on information known at compile time, like the current target or a cargo feature.
I worked on the implementation of this macro in the compiler and pushing for its stabilization (updating tests, docs, the reference, etc.)
#rustlang
Replies (1)
-
@bal4e@tech.lgbt 2026-04-16 15:01
@folkertdev This is so cool! As a fellow SIMD nerd, I'm excited to use this for feature checks, thank you for putting in the effort :3 (although I haven't made up my mind on runtime feature detection and how that should work...)