Decision Workspace
cargo-rustc-cfg vs cfg-expr vs depinfo
Side-by-side comparison of Rust crates
40
cargo-rustc-cfg
growingv0.2.0
Runs the `cargo rustc -- --print cfg` command and parses the output
71
cfg-expr
growingv0.20.7
A parser and evaluator for Rust `cfg()` expressions.
56
depinfo
experimentalv0.7.4
Depinfo parser for Rust
Core Metrics
| cargo-rustc-cfg | cfg-expr | depinfo | |
|---|---|---|---|
| Health Score | 40 | 71 | 56 |
| Total Downloads | 3.1K | 60.8M | 41.5K |
| 30d Downloads | 5 | 4.6M | 9.0K |
| Dependents | 0 | 344 | 15 |
| Releases | 2 | 49 | 15 |
| Last Updated | 1943d ago | 22d ago | today |
| Age | 5y 4m | 6y 2m | 11m |
Health Breakdown
cargo-rustc-cfg
Maintenance
3
Quality
16
Community
5
Popularity
4
Documentation
12
cfg-expr
Maintenance
19
Quality
17
Community
12
Popularity
8
Documentation
15
depinfo
Maintenance
20
Quality
14
Community
6
Popularity
6
Documentation
10
Technical Details
| cargo-rustc-cfg | cfg-expr | depinfo | |
|---|---|---|---|
| Version | 0.2.0 | 0.20.7 | 0.7.4 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT/Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 3 | 1 |
| Crate Size | 13KB | 45KB | 7KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2024 | 2021 |
| MSRV | — | 1.85.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •cfg-expr leads with a health score of 71/100, but none of the options score above 80.
- •cfg-expr is depended on by 344 crates — strongest ecosystem trust.
- •⚠ cargo-rustc-cfg has not been updated in over a year.