Cargo
cfg-if
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.
github.com/rust-lang/cfg-ifMITrust-lang-owner, Alex Crichton32.1M / week646 · 51 forks · 22 contributors
Release cadenceEvery 2 months
Last releaseSep 16, 2026
Open advisories0
Changelog quality100% curated
GitHub Releases + CHANGELOG
Release history Security
12 older or filtered releases not shown.
Upgrade guides
Breaking changes and a migration checklist for each major versionVersionChannelDateChangesSecurity
1.0.5 StableSep 16, 2026Deprecated11.0.4 StableOct 15, 2025Platform1New1Other11.0.3 StableAug 19, 2025Other11.0.2 YankedAug 19, 2025No changes listed1.0.1 StableJun 9, 2025Other41.0.0 StableOct 6, 2020No changes listed0.1.10 youStableSep 24, 2019No changes listed0.1.9 StableMay 15, 2019No changes listed0.1.8 StableMay 15, 2019No changes listed0.1.7 StableMar 4, 2019No changes listed0.1.6 StableOct 20, 2018No changes listed0.1.5 StableAug 13, 2018No changes listed0.1.4 StableJun 27, 2018No changes listed0.1.3 StableMay 3, 2018No changes listed0.1.2 StableJul 5, 2017No changes listed0.1.1 StableJun 8, 2017No changes listed0.1.0 StableJul 8, 2015No changes listed