Decision Workspace
string-truncate vs unicode-truncate vs philiprehberger-str-utils
Side-by-side comparison of Rust crates
45
string-truncate
experimentalv0.1.0
Smart string truncation: word-aware, grapheme-safe, tiny API
65
unicode-truncate
stablev3.0.0
Unicode-aware algorithm to pad or truncate `str` in terms of displayed width.
50
philiprehberger-str-utils
experimentalv0.2.0
String manipulation utilities — truncation, case conversion, padding, and whitespace operations
Core Metrics
| string-truncate | unicode-truncate | philiprehberger-str-utils | |
|---|---|---|---|
| Health Score | 45 | 65 | 50 |
| Total Downloads | 26 | 58.4M | 72 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 728 | 0 |
| Releases | 1 | 8 | 4 |
| Last Updated | 18d ago | 50d ago | 187d ago |
| Age | 18d | 7y 1m | 6m |
Health Breakdown
string-truncate
Maintenance
12
Quality
14
Community
5
Popularity
2
Documentation
12
unicode-truncate
Maintenance
14
Quality
21
Community
11
Popularity
8
Documentation
11
philiprehberger-str-utils
Maintenance
14
Quality
14
Community
5
Popularity
2
Documentation
15
Technical Details
| string-truncate | unicode-truncate | philiprehberger-str-utils | |
|---|---|---|---|
| Version | 0.1.0 | 3.0.0 | 0.2.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 1 | 4 | 1 |
| Crate Size | 5KB | 18KB | 8KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2018 | 2021 |
| MSRV | 1.85 | 1.85 | 1.70 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •unicode-truncate leads with a health score of 65/100, but none of the options score above 80.
- •unicode-truncate is depended on by 728 crates — strongest ecosystem trust.
- •string-truncate, philiprehberger-str-utils are pre-1.0 — API may change.