Decision Workspace
unicode-truncate vs unicode-width vs cellwidth
Side-by-side comparison of Rust crates
65
unicode-truncate
stablev3.0.0
Unicode-aware algorithm to pad or truncate `str` in terms of displayed width.
61
unicode-width
growingv0.2.2
Determine displayed width of `char` and `str` types according to Unicode Standard Annex #11 rules.
58
cellwidth
experimentalv1.0.1
Terminal display width that gets emoji, CJK and ANSI colour right. Measure, truncate, pad and wrap text so columns actually line up. No dependencies, no_std.
Core Metrics
| unicode-truncate | unicode-width | cellwidth | |
|---|---|---|---|
| Health Score | 65 | 61 | 58 |
| Total Downloads | 58.4M | 860.2M | 81 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 728 | 42.3K | 0 |
| Releases | 8 | 19 | 4 |
| Last Updated | 50d ago | 368d ago | 46d ago |
| Age | 7y 1m | 11y 6m | 1m |
Health Breakdown
unicode-truncate
Maintenance
14
Quality
21
Community
11
Popularity
8
Documentation
11
unicode-width
Maintenance
6
Quality
16
Community
19
Popularity
8
Documentation
12
cellwidth
Maintenance
16
Quality
19
Community
6
Popularity
2
Documentation
15
Technical Details
| unicode-truncate | unicode-width | cellwidth | |
|---|---|---|---|
| Version | 3.0.0 | 0.2.2 | 1.0.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 2 | 0 |
| Crate Size | 18KB | 283KB | 203KB |
| Features | 2 | 4 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | 1.85 | 1.66 | 1.75 |
| Owners | 1 | 5 | 1 |
Links
Quick Verdict
- •unicode-truncate leads with a health score of 65/100, but none of the options score above 80.
- •unicode-width has the most downloads (860.2M), suggesting wider adoption.
- •unicode-width is depended on by 42.3K crates — strongest ecosystem trust.
- •⚠ unicode-width has not been updated in over a year.
- •unicode-width is pre-1.0 — API may change.