Decision Workspace
slicestring vs substring vs slice-ansi
Side-by-side comparison of Rust crates
37
slicestring
growingv0.3.3
slicestring is a crate for slicing Strings
52
substring
growingv1.4.5
A substring method for string types.
48
slice-ansi
experimentalv0.1.1
Slice a string by terminal display column, preserving ANSI styling and wide (CJK) characters. A Rust take on Node's slice-ansi.
Core Metrics
| slicestring | substring | slice-ansi | |
|---|---|---|---|
| Health Score | 37 | 52 | 48 |
| Total Downloads | 23.0K | 13.5M | 40 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 16 | 3.0K | 0 |
| Releases | 10 | 17 | 2 |
| Last Updated | 1041d ago | 2073d ago | 109d ago |
| Age | 4y 11m | 5y 12m | 3m |
Health Breakdown
slicestring
Maintenance
4
Quality
10
Community
9
Popularity
5
Documentation
9
substring
Maintenance
4
Quality
17
Community
15
Popularity
8
Documentation
8
slice-ansi
Maintenance
11
Quality
14
Community
6
Popularity
2
Documentation
15
Technical Details
| slicestring | substring | slice-ansi | |
|---|---|---|---|
| Version | 0.3.3 | 1.4.5 | 0.1.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 1 | 1 |
| Crate Size | 2KB | 8KB | 13KB |
| Features | 0 | 0 | 0 |
| Yanked % | 40.0% | 5.9% | 0.0% |
| Edition | 2018 | — | 2021 |
| MSRV | — | — | 1.81 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •substring leads with a health score of 52/100, but none of the options score above 80.
- •substring is depended on by 3.0K crates — strongest ecosystem trust.
- •⚠ slicestring, substring have not been updated in over a year.
- •slicestring, slice-ansi are pre-1.0 — API may change.