cfg-if

cargov1.0.4

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.

License MIT OR Apache-2.0permissive16 versions0 deps182,555,338 weekly dl
rust-lang/cfg-if
70
/ 100
Health
safe to use

[email protected] is safe to use (health: 70/100)

Health breakdown0 – 100
10/25
maintenance
20/20
popularity
25/25
security
15/15
maturity
0/15
community
Vulnerabilities
0
none known
Maintainer trust
Active maintainers (3m)
1
Contributors (12m)
5
Primary author dominance
42%
GitHub stars
636
single active maintainer 3m
Quality signals
OSS Criticality
0.78critical
Download trend
stable(0%)

Health History

Dependency Tree

License Audit

API access

Get this data programmatically — free, no authentication.

curl https://depscope.dev/api/check/cargo/cfg-if

First published · 2015-07-08T01:11:24.485040Z

Last updated · 2025-10-15T08:12:46.455816Z

cfg-if — Health Score 70/100 | DepScope