rust-lang/cfg-if

rust-lang/cfg-if

Releases15
Frequency7 months 4 days
Last Release
Stars637
A if/elif-like macro for Rust #[cfg] statements

Linked projects

A macro to ergonomically define an item depending on a large number of #[cfg] parameters. Structured like an if-else chain, the first matching branch is the item that gets emitted.