Decision Workspace
stripmargin vs indoc vs unindent
Side-by-side comparison of Rust crates
40
stripmargin
growingv0.1.1
Simple but elegant multiline string in Rust à la Scala.
66
indoc
growingv2.0.7
Indented document literals
57
unindent
growingv0.2.4
Remove a column of leading whitespace from a string
Core Metrics
| stripmargin | indoc | unindent | |
|---|---|---|---|
| Health Score | 40 | 66 | 57 |
| Total Downloads | 453.1K | 275.3M | 198.9M |
| 30d Downloads | 24.8K | 10.2M | 6.1M |
| Dependents | 7 | 26.7K | 2.5K |
| Releases | 2 | 50 | 17 |
| Last Updated | 2003d ago | 265d ago | 497d ago |
| Age | 5y 5m | 10y 3m | 9y 12m |
Health Breakdown
stripmargin
Maintenance
3
Quality
16
Community
5
Popularity
7
Documentation
9
indoc
Maintenance
9
Quality
19
Community
15
Popularity
8
Documentation
15
unindent
Maintenance
6
Quality
16
Community
14
Popularity
8
Documentation
13
Technical Details
| stripmargin | indoc | unindent | |
|---|---|---|---|
| Version | 0.1.1 | 2.0.7 | 0.2.4 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 4 | 0 |
| Crate Size | 3KB | 17KB | 7KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | 1.60 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •indoc leads with a health score of 66/100, but none of the options score above 80.
- •indoc is depended on by 26.7K crates — strongest ecosystem trust.
- •⚠ stripmargin, unindent have not been updated in over a year.
- •stripmargin, unindent are pre-1.0 — API may change.