Decision Workspace
unicode-display-width vs unicode-width vs unicode-truncate
Side-by-side comparison of Rust crates
47
unicode-display-width
growingv0.3.0
Unicode 15.1.0 compliant utility for determining the number of columns required to display an arbitrary string
64
unicode-width
growingv0.2.2
Determine displayed width of `char` and `str` types according to Unicode Standard Annex #11 rules.
63
unicode-truncate
stablev2.0.1
Unicode-aware algorithm to pad or truncate `str` in terms of displayed width.
Core Metrics
| unicode-display-width | unicode-width | unicode-truncate | |
|---|---|---|---|
| Health Score | 47 | 64 | 63 |
| Total Downloads | 89.1K | 518.8M | 19.0M |
| 30d Downloads | 23.1K | 38.1M | 3.5M |
| Dependents | 196 | 20.5K | 565 |
| Releases | 2 | 19 | 7 |
| Last Updated | 864d ago | 172d ago | 71d ago |
| Age | 2y 5m | 10y 11m | 6y 7m |
Health Breakdown
unicode-display-width
Maintenance
4
Quality
15
Community
12
Popularity
6
Documentation
10
unicode-width
Maintenance
9
Quality
16
Community
19
Popularity
8
Documentation
12
unicode-truncate
Maintenance
13
Quality
20
Community
11
Popularity
8
Documentation
11
Technical Details
| unicode-display-width | unicode-width | unicode-truncate | |
|---|---|---|---|
| Version | 0.3.0 | 0.2.2 | 2.0.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 2 | 4 |
| Crate Size | 10KB | 283KB | 18KB |
| Features | 0 | 4 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | — | 1.66 | 1.66 |
| Owners | 1 | 5 | 1 |
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-display-width has not been updated in over a year.
- •unicode-display-width, unicode-width are pre-1.0 — API may change.