Decision Workspace
cargo-expand vs cargo-swell vs cargo-readme
Side-by-side comparison of Rust crates
70
cargo-expand
stablev1.0.127
Wrapper around rustc -Zunpretty=expanded. Shows the result of macro expansion and #[derive] expansion.
41
cargo-swell
experimentalv0.1.1
`cargo expand` without automatically derived items
65
cargo-readme
stablev3.4.1
A cargo subcommand to generate README.md content from doc comments
Core Metrics
| cargo-expand | cargo-swell | cargo-readme | |
|---|---|---|---|
| Health Score | 70 | 41 | 65 |
| Total Downloads | 3.7M | 528 | 797.7K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 40 | 0 | 243 |
| Releases | 182 | 2 | 19 |
| Last Updated | today | 362d ago | 1d ago |
| Age | 10y 4m | 12m | 10y 10m |
Health Breakdown
cargo-expand
Maintenance
19
Quality
18
Community
10
Popularity
8
Documentation
15
cargo-swell
Maintenance
6
Quality
13
Community
6
Popularity
3
Documentation
13
cargo-readme
Maintenance
16
Quality
18
Community
12
Popularity
7
Documentation
12
Technical Details
| cargo-expand | cargo-swell | cargo-readme | |
|---|---|---|---|
| Version | 1.0.127 | 0.1.1 | 3.4.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 20 | 4 | 9 |
| Crate Size | 33KB | 22KB | 51KB |
| Features | 2 | 0 | 0 |
| Yanked % | 1.1% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | 1.90 | — | 1.80 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •cargo-expand leads with a health score of 70/100, but none of the options score above 80.
- •cargo-readme is depended on by 243 crates — strongest ecosystem trust.
- •cargo-swell is pre-1.0 — API may change.