Decision Workspace
truncate-safe vs string-truncate vs bytestring
Side-by-side comparison of Rust crates
48
truncate-safe
experimentalv0.1.0
Truncate strings at UTF-8 character boundaries with an optional ellipsis
45
string-truncate
experimentalv0.1.0
Smart string truncation: word-aware, grapheme-safe, tiny API
70
bytestring
growingv1.5.1
A UTF-8 encoded read-only string using `Bytes` as storage
Core Metrics
| truncate-safe | string-truncate | bytestring | |
|---|---|---|---|
| Health Score | 48 | 45 | 70 |
| Total Downloads | 27 | 26 | 86.0M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 1.5K |
| Releases | 2 | 1 | 14 |
| Last Updated | today | 18d ago | 162d ago |
| Age | 1d | 18d | 6y 10m |
Health Breakdown
truncate-safe
Maintenance
14
Quality
15
Community
5
Popularity
2
Documentation
12
string-truncate
Maintenance
12
Quality
14
Community
5
Popularity
2
Documentation
12
bytestring
Maintenance
10
Quality
20
Community
20
Popularity
8
Documentation
12
Technical Details
| truncate-safe | string-truncate | bytestring | |
|---|---|---|---|
| Version | 0.1.0 | 0.1.0 | 1.5.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 1 | 5 |
| Crate Size | 3KB | 5KB | 11KB |
| Features | 0 | 0 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2021 |
| MSRV | 1.88 | 1.85 | 1.88 |
| Owners | 1 | 1 | 2 (team) |
Links
Quick Verdict
- •bytestring leads with a health score of 70/100, but none of the options score above 80.
- •bytestring is depended on by 1.5K crates — strongest ecosystem trust.
- •truncate-safe, string-truncate are pre-1.0 — API may change.