Decision Workspace
unicode-width vs unicode-truncate vs unicode-width-16
Side-by-side comparison of Rust crates
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.
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-width | unicode-truncate | unicode-width-16 | |
|---|---|---|---|
| Health Score | 62 | 60 | 48 |
| Total Downloads | 678.9M | 35.3M | 29.2K |
| 30d Downloads | 29.9M | 3.3M | 1.5K |
| Dependents | 29.8K | 637 | 151 |
| Releases | 19 | 7 | 1 |
| Last Updated | 280d ago | 179d ago | 641d ago |
| Age | 11y 3m | 6y 11m | 1y 9m |
Health Breakdown
unicode-width
Maintenance
7
Quality
16
Community
19
Popularity
8
Documentation
12
unicode-truncate
Maintenance
9
Quality
21
Community
11
Popularity
8
Documentation
11
unicode-width-16
Maintenance
1
Quality
17
Community
14
Popularity
5
Documentation
11
Technical Details
| unicode-width | unicode-truncate | unicode-width-16 | |
|---|---|---|---|
| Version | 0.2.2 | 2.0.1 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 2 | 4 | 3 |
| Crate Size | 283KB | 18KB | 19KB |
| Features | 4 | 2 | 4 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | — |
| MSRV | 1.66 | 1.66 | — |
| Owners | 5 | 1 | 2 (team) |
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-width-16 has not been updated in over a year.
- •unicode-width, unicode-width-16 are pre-1.0 — API may change.