Decision Workspace
rustc_span vs autocfg vs cfg-expr
Side-by-side comparison of Rust crates
40
rustc_span
growingv0.1.2
Reuse rustc_span for compiler_base
70
autocfg
stablev1.5.1
Automatic cfg for Rust compiler features
68
cfg-expr
growingv0.20.7
A parser and evaluator for Rust `cfg()` expressions.
Core Metrics
| rustc_span | autocfg | cfg-expr | |
|---|---|---|---|
| Health Score | 40 | 70 | 68 |
| Total Downloads | 102.6K | 945.2M | 70.7M |
| 30d Downloads | 2.3K | 66.5M | 5.4M |
| Dependents | 14 | 1.0K | 367 |
| Releases | 5 | 18 | 49 |
| Last Updated | 761d ago | 3d ago | 81d ago |
| Age | 3y 8m | 7y 12m | 6y 4m |
Health Breakdown
rustc_span
Maintenance
4
Quality
13
Community
7
Popularity
6
Documentation
10
autocfg
Maintenance
16
Quality
18
Community
15
Popularity
8
Documentation
13
cfg-expr
Maintenance
16
Quality
17
Community
12
Popularity
8
Documentation
15
Technical Details
| rustc_span | autocfg | cfg-expr | |
|---|---|---|---|
| Version | 0.1.2 | 1.5.1 | 0.20.7 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | Apache-2.0 OR MIT | Apache-2.0 OR MIT | MIT OR Apache-2.0 |
| Dependencies | 8 | 0 | 3 |
| Crate Size | 30KB | 19KB | 45KB |
| Features | 0 | 0 | 2 |
| Yanked % | 0.0% | 5.6% | 0.0% |
| Edition | 2021 | — | 2024 |
| MSRV | — | 1.0 | 1.85.0 |
| Owners | 1 | 2 | 1 |
Links
Quick Verdict
- •autocfg leads with a health score of 70/100, but none of the options score above 80.
- •autocfg is depended on by 1.0K 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.