Decision Workspace
stripmargin vs indoc vs unindent
Side-by-side comparison of Rust crates
39
stripmargin
growingv0.1.1
Simple but elegant multiline string in Rust à la Scala.
68
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 | 39 | 68 | 57 |
| Total Downloads | 219.1K | 212.2M | 158.3M |
| 30d Downloads | 61.1K | 15.2M | 10.3M |
| Dependents | 7 | 23.4K | 2.3K |
| Releases | 2 | 50 | 17 |
| Last Updated | 1895d ago | 157d ago | 389d ago |
| Age | 5y 2m | 10y | 9y 8m |
Health Breakdown
stripmargin
Maintenance
3
Quality
16
Community
5
Popularity
6
Documentation
9
indoc
Maintenance
11
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 68/100, but none of the options score above 80.
- •indoc is depended on by 23.4K crates — strongest ecosystem trust.
- •⚠ stripmargin, unindent have not been updated in over a year.
- •stripmargin, unindent are pre-1.0 — API may change.