Decision Workspace
cellwidth vs cli-truncate vs unicode-truncate
Side-by-side comparison of Rust crates
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.
49
cli-truncate
experimentalv0.1.1
Truncate a string to a terminal display width with an ellipsis — wide-character (CJK) and ANSI-escape aware.
65
unicode-truncate
stablev3.0.0
Unicode-aware algorithm to pad or truncate `str` in terms of displayed width.
Core Metrics
| cellwidth | cli-truncate | unicode-truncate | |
|---|---|---|---|
| Health Score | 58 | 49 | 65 |
| Total Downloads | 81 | 82 | 58.4M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 1 | 728 |
| Releases | 4 | 2 | 8 |
| Last Updated | 46d ago | 109d ago | 50d ago |
| Age | 1m | 3m | 7y 1m |
Health Breakdown
cellwidth
Maintenance
16
Quality
19
Community
6
Popularity
2
Documentation
15
cli-truncate
Maintenance
11
Quality
14
Community
7
Popularity
2
Documentation
15
unicode-truncate
Maintenance
14
Quality
21
Community
11
Popularity
8
Documentation
11
Technical Details
| cellwidth | cli-truncate | unicode-truncate | |
|---|---|---|---|
| Version | 1.0.1 | 0.1.1 | 3.0.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 1 | 4 |
| Crate Size | 203KB | 14KB | 18KB |
| Features | 3 | 0 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | 1.75 | 1.81 | 1.85 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •unicode-truncate leads with a health score of 65/100, but none of the options score above 80.
- •unicode-truncate is depended on by 728 crates — strongest ecosystem trust.
- •cli-truncate is pre-1.0 — API may change.