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 | 359.8K | 244.3M | 179.5M |
| 30d Downloads | 64.2K | 16.9M | 11.0M |
| Dependents | 7 | 25.1K | 2.4K |
| Releases | 2 | 50 | 17 |
| Last Updated | 1954d ago | 216d ago | 448d ago |
| Age | 5y 4m | 10y 2m | 9y 10m |
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 25.1K crates — strongest ecosystem trust.
- •⚠ stripmargin, unindent have not been updated in over a year.
- •stripmargin, unindent are pre-1.0 — API may change.