Decision Workspace
compact_string vs compact_str vs cold-string
Side-by-side comparison of Rust crates
39
compact_string
growingv0.1.0
Compact representation of UTF-8 Strings that are immutable and less than 256 bytes in length.
58
compact_str
growingv0.10.0
A memory efficient string type that transparently stores strings on the stack, when possible
52
cold-string
experimentalv0.5.0
A 1-word SSO string that saves up to 24 bytes over String.
Core Metrics
| compact_string | compact_str | cold-string | |
|---|---|---|---|
| Health Score | 39 | 58 | 52 |
| Total Downloads | 1.2K | 176.3M | 511 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 1 | 10.4K | 0 |
| Releases | 1 | 23 | 5 |
| Last Updated | 529d ago | 88d ago | 2d ago |
| Age | 1y 5m | 5y | 7m |
Health Breakdown
compact_string
Maintenance
2
Quality
14
Community
7
Popularity
4
Documentation
12
compact_str
Maintenance
13
Quality
10
Community
15
Popularity
8
Documentation
12
cold-string
Maintenance
18
Quality
14
Community
6
Popularity
3
Documentation
11
Technical Details
| compact_string | compact_str | cold-string | |
|---|---|---|---|
| Version | 0.1.0 | 0.10.0 | 0.5.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 | MIT | MIT OR Apache-2.0 |
| Dependencies | 4 | 36 | 9 |
| Crate Size | 13KB | 104KB | 28KB |
| Features | 0 | 24 | 3 |
| Yanked % | 0.0% | 13.0% | 0.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | 1.70.0 | 1.71 | 1.60.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •compact_str leads with a health score of 58/100, but none of the options score above 80.
- •compact_str is depended on by 10.4K crates — strongest ecosystem trust.
- •⚠ compact_string has not been updated in over a year.