Decision Workspace
compact_str vs sinstr vs cold-string
Side-by-side comparison of Rust crates
52
compact_str
growingv0.9.0
A memory efficient string type that transparently stores strings on the stack, when possible
47
sinstr
experimentalv0.4.0
A single WORD small string optimization library.
46
cold-string
experimentalv0.2.0
A 1-word SSO string that saves up to 24 bytes over String.
Core Metrics
| compact_str | sinstr | cold-string | |
|---|---|---|---|
| Health Score | 52 | 47 | 46 |
| Total Downloads | 78.3M | 47 | 116 |
| 30d Downloads | 9.8M | 47 | 103 |
| Dependents | 5.1K | 0 | 0 |
| Releases | 20 | 4 | 2 |
| Last Updated | 396d ago | 2d ago | 26d ago |
| Age | 4y 6m | 3d | 1m |
Health Breakdown
compact_str
Maintenance
8
Quality
11
Community
15
Popularity
8
Documentation
10
sinstr
Maintenance
19
Quality
8
Community
6
Popularity
2
Documentation
12
cold-string
Maintenance
12
Quality
15
Community
6
Popularity
2
Documentation
11
Technical Details
| compact_str | sinstr | cold-string | |
|---|---|---|---|
| Version | 0.9.0 | 0.4.0 | 0.2.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 28 | 4 | 7 |
| Crate Size | 72KB | 32KB | 19KB |
| Features | 17 | 0 | 3 |
| Yanked % | 15.0% | 25.0% | 0.0% |
| Edition | 2021 | 2024 | 2018 |
| MSRV | — | 1.91 | 1.60.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •compact_str leads with a health score of 52/100, but none of the options score above 80.
- •compact_str is depended on by 5.1K crates — strongest ecosystem trust.
- •⚠ compact_str has not been updated in over a year.