Decision Workspace
unicode-display-width vs unicode-width vs unicode-truncate
Side-by-side comparison of Rust crates
48
unicode-display-width
growingv0.3.0
Unicode 15.1.0 compliant utility for determining the number of columns required to display an arbitrary string
62
unicode-width
growingv0.2.2
Determine displayed width of `char` and `str` types according to Unicode Standard Annex #11 rules.
60
unicode-truncate
growingv2.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 | 48 | 62 | 60 |
| Total Downloads | 185.6K | 678.9M | 35.3M |
| 30d Downloads | 18.2K | 28.0M | 3.1M |
| Dependents | 245 | 29.8K | 637 |
| Releases | 2 | 19 | 7 |
| Last Updated | 972d ago | 280d ago | 179d ago |
| Age | 2y 8m | 11y 3m | 6y 11m |
Health Breakdown
unicode-display-width
Maintenance
4
Quality
15
Community
13
Popularity
6
Documentation
10
unicode-width
Maintenance
7
Quality
16
Community
19
Popularity
8
Documentation
12
unicode-truncate
Maintenance
9
Quality
21
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 62/100, but none of the options score above 80.
- •unicode-width is depended on by 29.8K 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.