Decision Workspace
compact_bytes vs compact_str vs cold-string
Side-by-side comparison of Rust crates
42
compact_bytes
growingv0.2.1
A memory efficient bytes container that transparently stores bytes on the stack, when possible
52
compact_str
growingv0.9.0
A memory efficient string type that transparently stores strings on the stack, when possible
47
cold-string
experimentalv0.2.0
A 1-word SSO string that saves up to 24 bytes over String.
Core Metrics
| compact_bytes | compact_str | cold-string | |
|---|---|---|---|
| Health Score | 42 | 52 | 47 |
| Total Downloads | 302.9K | 96.4M | 266 |
| 30d Downloads | 29.3K | 10.1M | 0 |
| Dependents | 13 | 6.2K | 0 |
| Releases | 7 | 20 | 2 |
| Last Updated | 346d ago | 455d ago | 85d ago |
| Age | 2y 6m | 4y 8m | 3m |
Health Breakdown
compact_bytes
Maintenance
6
Quality
10
Community
9
Popularity
7
Documentation
10
compact_str
Maintenance
8
Quality
11
Community
15
Popularity
8
Documentation
10
cold-string
Maintenance
12
Quality
15
Community
6
Popularity
3
Documentation
11
Technical Details
| compact_bytes | compact_str | cold-string | |
|---|---|---|---|
| Version | 0.2.1 | 0.9.0 | 0.2.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT/Apache-2.0 | MIT | MIT OR Apache-2.0 |
| Dependencies | 7 | 28 | 7 |
| Crate Size | 20KB | 72KB | 19KB |
| Features | 0 | 17 | 3 |
| Yanked % | 14.3% | 15.0% | 0.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | — | — | 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 6.2K crates — strongest ecosystem trust.
- •⚠ compact_str has not been updated in over a year.