cfg-if
crates.io v1.0.412,994,215 weekly downloads · 1 Dependencies
Source data as of:
Summary
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.
Install
cargo add cfg-if
- Ecosystemcrates.io
- Version1.0.4
- Weekly downloads12,994,215
- License—
- Dependencies1
- Last release2025-10-15
- First published2015-07-08
Registry values
Reproduced verbatim from the official registry, with the source named on each value.
Description
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.
Registry-supplied description, cleaned to plain text. Source: crates.io (Rust).
Show original (raw) description
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.
Derived indices (computation method published)
Quanteta-computed from the registry values below. This is a derived index, not a measured registry metric. See the formula on the Data & Sources page.
Q-Vitality Quanteta
55.9 / 100
Maintenance activity index (release cadence + download level).
Q-Trust Quanteta
25.0 / 100
Adoption / stability index (community size + download stability + age).
Q-Risk Quanteta
36.0 / 100
Dependency-surface index. Higher = more risk factors detected.