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
73
cfg-expr
growingv0.20.10
A parser and evaluator for Rust `cfg()` expressions.
59
depinfo
growingv0.7.10
Depinfo parser for Rust
Core Metrics
| cargo-rustc-cfg | cfg-expr | depinfo | |
|---|---|---|---|
| Health Score | 40 | 73 | 59 |
| Total Downloads | 3.1K | 110.4M | 121.9K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 406 | 27 |
| Releases | 2 | 52 | 22 |
| Last Updated | 2139d ago | 8d ago | 71d ago |
| Age | 5y 10m | 6y 9m | 1y 6m |
Health Breakdown
cargo-rustc-cfg
Maintenance
3
Quality
16
Community
5
Popularity
4
Documentation
12
cfg-expr
Maintenance
21
Quality
17
Community
12
Popularity
8
Documentation
15
depinfo
Maintenance
16
Quality
15
Community
12
Popularity
6
Documentation
10
Technical Details
| cargo-rustc-cfg | cfg-expr | depinfo | |
|---|---|---|---|
| Version | 0.2.0 | 0.20.10 | 0.7.10 |
| 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 | 46KB | 7KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2024 | 2021 |
| MSRV | — | 1.85.0 | — |
| Owners | 1 | 1 | 2 (team) |
Links
Quick Verdict
- •cfg-expr leads with a health score of 73/100, but none of the options score above 80.
- •cfg-expr is depended on by 406 crates — strongest ecosystem trust.
- •⚠ cargo-rustc-cfg has not been updated in over a year.