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
71
cfg-expr
growingv0.20.7
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 | 71 | 55 |
| Total Downloads | 2.7M | 60.8M | 52.4K |
| 30d Downloads | 52.8K | 4.6M | 1.3K |
| Dependents | 69 | 344 | 48 |
| Releases | 7 | 49 | 8 |
| Last Updated | 1360d ago | 22d ago | 1146d ago |
| Age | 9y 6m | 6y 2m | 3y 1m |
Health Breakdown
rustc-cfg
Maintenance
3
Quality
15
Community
8
Popularity
8
Documentation
11
cfg-expr
Maintenance
19
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.7 | 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 | 45KB | 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 71/100, but none of the options score above 80.
- •cfg-expr is depended on by 344 crates — strongest ecosystem trust.
- •⚠ rustc-cfg, rustc-host have not been updated in over a year.