Trending / Packages / crates.io

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 v1.0.5 · Sep 16, 2026

Downloads

No download history yet.

Linked repositories

##RepositoryRepositoryConnectionConnection
1Anuoluwapo25/Hazina-EscrowSource package · Manifest
2rust-lang/cfg-ifRegistry metadata
3sapientinc/PRAXISTSource package · Manifest
4ytsaurus/ytsaurusSource package · Manifest

Recent releases

VersionPublished
1.0.5Sep 16, 2026
1.0.4Oct 15, 2025
1.0.3Aug 19, 2025
1.0.2yankedAug 19, 2025
1.0.1Jun 9, 2025

Metadata updated Oct 25, 2026 · Downloads updated Oct 29, 2026

Download counts include automated and repeat installs. Gaps indicate missing observations.