Decision Workspace
rustc-cfg vs cfg-expr vs rustc-host
Side-by-side comparison of Rust crates
45
rustc-cfg
growingv0.5.0
Runs `rustc --print cfg` and parses the output
73
cfg-expr
growingv0.20.10
A parser and evaluator for Rust `cfg()` expressions.
55
rustc-host
growingv0.1.7
Get host target triplet of rustc.
Core Metrics
| rustc-cfg | cfg-expr | rustc-host | |
|---|---|---|---|
| Health Score | 45 | 73 | 55 |
| Total Downloads | 3.2M | 110.4M | 69.2K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 69 | 406 | 75 |
| Releases | 7 | 52 | 8 |
| Last Updated | 1556d ago | 8d ago | 1343d ago |
| Age | 10y 1m | 6y 9m | 3y 8m |
Health Breakdown
rustc-cfg
Maintenance
3
Quality
15
Community
8
Popularity
8
Documentation
11
cfg-expr
Maintenance
21
Quality
17
Community
12
Popularity
8
Documentation
15
rustc-host
Maintenance
8
Quality
16
Community
10
Popularity
6
Documentation
15
Technical Details
| rustc-cfg | cfg-expr | rustc-host | |
|---|---|---|---|
| Version | 0.5.0 | 0.20.10 | 0.1.7 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 1 | 3 | 1 |
| Crate Size | 8KB | 46KB | 8KB |
| Features | 0 | 2 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | — | 2024 | 2021 |
| MSRV | — | 1.85.0 | 1.56.1 |
| Owners | 1 | 1 | 1 |
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.
- •⚠ rustc-cfg, rustc-host have not been updated in over a year.