Decision Workspace
string-width vs widest-line vs cellwidth
Side-by-side comparison of Rust crates
46
string-width
growingv0.1.0
Accurate Unicode string width calculation for terminal applications, handling emoji, East Asian characters, combining marks, and ANSI escape sequences
35
widest-line
growingv0.1.0
Find the widest line in a string with proper Unicode and ANSI escape code support
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
| string-width | widest-line | cellwidth | |
|---|---|---|---|
| Health Score | 46 | 35 | 58 |
| Total Downloads | 468.8K | 356 | 81 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 6 | 0 | 0 |
| Releases | 1 | 1 | 4 |
| Last Updated | 397d ago | 397d ago | 46d ago |
| Age | 1y 1m | 1y 1m | 1m |
Health Breakdown
string-width
Maintenance
2
Quality
14
Community
8
Popularity
7
Documentation
15
widest-line
Maintenance
2
Quality
14
Community
6
Popularity
3
Documentation
10
cellwidth
Maintenance
16
Quality
19
Community
6
Popularity
2
Documentation
15
Technical Details
| string-width | widest-line | cellwidth | |
|---|---|---|---|
| Version | 0.1.0 | 0.1.0 | 1.0.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 6 | 0 |
| Crate Size | 28KB | 15KB | 203KB |
| Features | 0 | 0 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | 1.85 | — | 1.75 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •cellwidth leads with a health score of 58/100, but none of the options score above 80.
- •string-width has the most downloads (468.8K), suggesting wider adoption.
- •⚠ string-width, widest-line have not been updated in over a year.
- •string-width, widest-line are pre-1.0 — API may change.