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
73
cfg-expr
growingv0.20.10
A parser and evaluator for Rust `cfg()` expressions.
63
autocfg
growingv1.5.1
Automatic cfg for Rust compiler features
Core Metrics
| rustc_data_structures | cfg-expr | autocfg | |
|---|---|---|---|
| Health Score | 38 | 73 | 63 |
| Total Downloads | 145.0K | 110.4M | 1.4B |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 7 | 406 | 1.2K |
| Releases | 5 | 52 | 18 |
| Last Updated | 898d ago | 8d ago | 140d ago |
| Age | 4y | 6y 9m | 8y 4m |
Health Breakdown
rustc_data_structures
Maintenance
4
Quality
12
Community
6
Popularity
6
Documentation
10
cfg-expr
Maintenance
21
Quality
17
Community
12
Popularity
8
Documentation
15
autocfg
Maintenance
9
Quality
18
Community
15
Popularity
8
Documentation
13
Technical Details
| rustc_data_structures | cfg-expr | autocfg | |
|---|---|---|---|
| Version | 0.1.2 | 0.20.10 | 1.5.1 |
| 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 | 46KB | 19KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 5.6% |
| Edition | 2021 | 2024 | — |
| MSRV | — | 1.85.0 | 1.0 |
| Owners | 1 | 1 | 2 |
Links
Quick Verdict
- •cfg-expr leads with a health score of 73/100, but none of the options score above 80.
- •autocfg has the most downloads (1.4B), suggesting wider adoption.
- •autocfg is depended on by 1.2K 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.