Decision Workspace
rustc_data_structures vs cfg-expr vs autocfg
Side-by-side comparison of Rust crates
38
rustc_data_structures
growingv0.1.2
Reuse rustc_data_structures for compiler_base
71
cfg-expr
growingv0.20.7
A parser and evaluator for Rust `cfg()` expressions.
60
autocfg
growingv1.5.0
Automatic cfg for Rust compiler features
Core Metrics
| rustc_data_structures | cfg-expr | autocfg | |
|---|---|---|---|
| Health Score | 38 | 71 | 60 |
| Total Downloads | 103.7K | 60.8M | 826.5M |
| 30d Downloads | 3.2K | 4.6M | 51.6M |
| Dependents | 7 | 344 | 972 |
| Releases | 5 | 49 | 17 |
| Last Updated | 702d ago | 22d ago | 283d ago |
| Age | 3y 6m | 6y 2m | 7y 10m |
Health Breakdown
rustc_data_structures
Maintenance
4
Quality
12
Community
6
Popularity
6
Documentation
10
cfg-expr
Maintenance
19
Quality
17
Community
12
Popularity
8
Documentation
15
autocfg
Maintenance
6
Quality
18
Community
15
Popularity
8
Documentation
13
Technical Details
| rustc_data_structures | cfg-expr | autocfg | |
|---|---|---|---|
| Version | 0.1.2 | 0.20.7 | 1.5.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | Apache-2.0 OR MIT | MIT OR Apache-2.0 | Apache-2.0 OR MIT |
| Dependencies | 16 | 3 | 0 |
| Crate Size | 11KB | 45KB | 19KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 5.9% |
| Edition | 2021 | 2024 | — |
| MSRV | — | 1.85.0 | 1.0 |
| Owners | 1 | 1 | 2 |
Links
Quick Verdict
- •cfg-expr leads with a health score of 71/100, but none of the options score above 80.
- •autocfg has the most downloads (826.5M), suggesting wider adoption.
- •autocfg is depended on by 972 crates — strongest ecosystem trust.
- •⚠ rustc_data_structures has not been updated in over a year.
- •rustc_data_structures, cfg-expr are pre-1.0 — API may change.