Decision Workspace
compact_str vs cold-string vs sinstr
Side-by-side comparison of Rust crates
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.
46
sinstr
experimentalv0.4.4
A single WORD small string optimization library.
Core Metrics
| compact_str | cold-string | sinstr | |
|---|---|---|---|
| Health Score | 58 | 52 | 46 |
| Total Downloads | 176.3M | 511 | 173 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 10.4K | 0 | 0 |
| Releases | 23 | 5 | 8 |
| Last Updated | 88d ago | 2d ago | 87d ago |
| Age | 5y | 7m | 6m |
Health Breakdown
compact_str
Maintenance
13
Quality
10
Community
15
Popularity
8
Documentation
12
cold-string
Maintenance
18
Quality
14
Community
6
Popularity
3
Documentation
11
sinstr
Maintenance
14
Quality
11
Community
6
Popularity
3
Documentation
12
Technical Details
| compact_str | cold-string | sinstr | |
|---|---|---|---|
| Version | 0.10.0 | 0.5.0 | 0.4.4 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 36 | 9 | 4 |
| Crate Size | 104KB | 28KB | 33KB |
| Features | 24 | 3 | 2 |
| Yanked % | 13.0% | 0.0% | 12.5% |
| Edition | 2021 | 2018 | 2024 |
| MSRV | 1.71 | 1.60.0 | 1.88 |
| 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.