Decision Workspace
rewrite vs rusty-sponge vs ast-grep-core
Side-by-side comparison of Rust crates
43
rewrite
growingv1.0.0
Safely rewrite file contents from stdin, even when file is open as an input.
49
rusty-sponge
experimentalv0.2.0
Soak up stdin and write it atomically to a file — a Rust port of moreutils `sponge` with strict-compat mode, configurable spill-to-tempfile, and a typed library API.
72
ast-grep-core
growingv0.50.0
Search and Rewrite code at large scale using precise AST pattern
Core Metrics
| rewrite | rusty-sponge | ast-grep-core | |
|---|---|---|---|
| Health Score | 43 | 49 | 72 |
| Total Downloads | 5.5K | 40 | 2.8M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 2.0K |
| Releases | 3 | 2 | 183 |
| Last Updated | 2046d ago | 128d ago | today |
| Age | 9y 7m | 4m | 4y 3m |
Health Breakdown
rewrite
Maintenance
3
Quality
21
Community
6
Popularity
4
Documentation
9
rusty-sponge
Maintenance
11
Quality
15
Community
6
Popularity
2
Documentation
15
ast-grep-core
Maintenance
20
Quality
14
Community
15
Popularity
8
Documentation
15
Technical Details
| rewrite | rusty-sponge | ast-grep-core | |
|---|---|---|---|
| Version | 1.0.0 | 0.2.0 | 0.50.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 0 | 14 | 5 |
| Crate Size | 5KB | 92KB | 49KB |
| Features | 0 | 7 | 1 |
| Yanked % | 0.0% | 0.0% | 0.5% |
| Edition | 2018 | 2024 | 2024 |
| MSRV | — | 1.85 | 1.88.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •ast-grep-core leads with a health score of 72/100, but none of the options score above 80.
- •ast-grep-core is depended on by 2.0K crates — strongest ecosystem trust.
- •⚠ rewrite has not been updated in over a year.
- •rusty-sponge, ast-grep-core are pre-1.0 — API may change.