Decision Workspace
rustc_span vs cfg-expr vs autocfg
Side-by-side comparison of Rust crates
40
rustc_span
growingv0.1.2
Reuse rustc_span 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_span | cfg-expr | autocfg | |
|---|---|---|---|
| Health Score | 40 | 73 | 63 |
| Total Downloads | 115.1K | 110.4M | 1.4B |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 14 | 406 | 1.2K |
| Releases | 5 | 52 | 18 |
| Last Updated | 898d ago | 8d ago | 140d ago |
| Age | 4y | 6y 9m | 8y 4m |
Health Breakdown
rustc_span
Maintenance
4
Quality
13
Community
7
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_span | 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 | 8 | 3 | 0 |
| Crate Size | 30KB | 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_span has not been updated in over a year.
- •rustc_span, cfg-expr are pre-1.0 — API may change.