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.016 versions0 deps173,536,538 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)
Contributors (12m)
GitHub stars
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 | DepScope