The cfg_select! macro is now stable, and will be part of rust 1.95.

https://github.com/rust-lang/rust/pull/149783

This is a builtin replacement for cfg_if, and is really effective at cleaning up complex configuration logic.