# cfg-if (crates.io)

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.

- Latest: 1.0.5 (2026-09-16)
- Licence: MIT OR Apache-2.0
- Downloads: 513310868 last 90 days
- Advisories on the latest version: 0


Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.
