Decision Workspace
indent-string vs use-text-line vs bstr
Side-by-side comparison of Rust crates
51
indent-string
experimentalv0.1.0
Indent each line of a multi-line string. A faithful port of the indent-string npm package. Zero dependencies, no_std.
48
use-text-line
experimentalv0.1.0
Composable line-level text primitives for RustUse.
76
bstr
stablev1.12.3
A string type that is not required to be valid UTF-8.
Core Metrics
| indent-string | use-text-line | bstr | |
|---|---|---|---|
| Health Score | 51 | 48 | 76 |
| Total Downloads | 37 | 92 | 347.7M |
| 30d Downloads | 0 | 0 | 15.8M |
| Dependents | 1 | 1 | 7.8K |
| Releases | 1 | 1 | 51 |
| Last Updated | 19d ago | 55d ago | 18d ago |
| Age | 19d | 1m | 7y 9m |
Health Breakdown
indent-string
Maintenance
12
Quality
15
Community
7
Popularity
2
Documentation
15
use-text-line
Maintenance
10
Quality
15
Community
6
Popularity
2
Documentation
15
bstr
Maintenance
18
Quality
20
Community
15
Popularity
8
Documentation
15
Technical Details
| indent-string | use-text-line | bstr | |
|---|---|---|---|
| Version | 0.1.0 | 0.1.0 | 1.12.3 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 6 |
| Crate Size | 9KB | 4KB | 355KB |
| Features | 0 | 0 | 5 |
| Yanked % | 0.0% | 0.0% | 2.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | 1.81 | 1.95.0 | 1.65 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •bstr leads with a health score of 76/100, but none of the options score above 80.
- •bstr is depended on by 7.8K crates — strongest ecosystem trust.
- •indent-string, use-text-line are pre-1.0 — API may change.