Decision Workspace
widest-line vs string-width vs cellwidth
Side-by-side comparison of Rust crates
35
widest-line
growingv0.1.0
Find the widest line in a string with proper Unicode and ANSI escape code support
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
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
| widest-line | string-width | cellwidth | |
|---|---|---|---|
| Health Score | 35 | 46 | 58 |
| Total Downloads | 356 | 468.8K | 81 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 6 | 0 |
| Releases | 1 | 1 | 4 |
| Last Updated | 397d ago | 397d ago | 46d ago |
| Age | 1y 1m | 1y 1m | 1m |
Health Breakdown
widest-line
Maintenance
2
Quality
14
Community
6
Popularity
3
Documentation
10
string-width
Maintenance
2
Quality
14
Community
8
Popularity
7
Documentation
15
cellwidth
Maintenance
16
Quality
19
Community
6
Popularity
2
Documentation
15
Technical Details
| widest-line | string-width | 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 | 6 | 4 | 0 |
| Crate Size | 15KB | 28KB | 203KB |
| Features | 0 | 0 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 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.
- •⚠ widest-line, string-width have not been updated in over a year.
- •widest-line, string-width are pre-1.0 — API may change.