Decision Workspace
unicode-truncate vs unicode-width vs unicode-width-16
Side-by-side comparison of Rust crates
63
unicode-truncate
stablev2.0.1
Unicode-aware algorithm to pad or truncate `str` in terms of displayed width.
64
unicode-width
growingv0.2.2
Determine displayed width of `char` and `str` types according to Unicode Standard Annex #11 rules.
48
unicode-width-16
growingv0.1.0
Determine displayed width of `char` and `str` types according to Unicode Standard Annex #11 rules.
Core Metrics
| unicode-truncate | unicode-width | unicode-width-16 | |
|---|---|---|---|
| Health Score | 63 | 64 | 48 |
| Total Downloads | 19.0M | 518.8M | 20.6K |
| 30d Downloads | 3.6M | 39.4M | 2.1K |
| Dependents | 565 | 20.5K | 100 |
| Releases | 7 | 19 | 1 |
| Last Updated | 71d ago | 172d ago | 533d ago |
| Age | 6y 7m | 10y 11m | 1y 5m |
Health Breakdown
unicode-truncate
Maintenance
13
Quality
20
Community
11
Popularity
8
Documentation
11
unicode-width
Maintenance
9
Quality
16
Community
19
Popularity
8
Documentation
12
unicode-width-16
Maintenance
2
Quality
17
Community
13
Popularity
5
Documentation
11
Technical Details
| unicode-truncate | unicode-width | unicode-width-16 | |
|---|---|---|---|
| Version | 2.0.1 | 0.2.2 | 0.1.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 2 | 3 |
| Crate Size | 18KB | 283KB | 19KB |
| Features | 2 | 4 | 4 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | — |
| MSRV | 1.66 | 1.66 | — |
| Owners | 1 | 5 | 2 (team) |
Links
Quick Verdict
- •unicode-width leads with a health score of 64/100, but none of the options score above 80.
- •unicode-width is depended on by 20.5K crates — strongest ecosystem trust.
- •⚠ unicode-width-16 has not been updated in over a year.
- •unicode-width, unicode-width-16 are pre-1.0 — API may change.