Decision Workspace
string32 vs compact_str vs smallstr
Side-by-side comparison of Rust crates
39
string32
growingv0.2.0
A string that is indexed by u32 instead of usize
58
compact_str
growingv0.10.0
A memory efficient string type that transparently stores strings on the stack, when possible
57
smallstr
growingv0.3.1
String-like container based on smallvec
Core Metrics
| string32 | compact_str | smallstr | |
|---|---|---|---|
| Health Score | 39 | 58 | 57 |
| Total Downloads | 2.9K | 176.3M | 11.4M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 10.4K | 1.1K |
| Releases | 2 | 23 | 4 |
| Last Updated | 1958d ago | 88d ago | 422d ago |
| Age | 5y 5m | 5y | 8y 5m |
Health Breakdown
string32
Maintenance
3
Quality
15
Community
5
Popularity
4
Documentation
12
compact_str
Maintenance
13
Quality
10
Community
15
Popularity
8
Documentation
12
smallstr
Maintenance
7
Quality
17
Community
13
Popularity
8
Documentation
12
Technical Details
| string32 | compact_str | smallstr | |
|---|---|---|---|
| Version | 0.2.0 | 0.10.0 | 0.3.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Unlicense OR MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 2 | 36 | 3 |
| Crate Size | 8KB | 104KB | 13KB |
| Features | 0 | 24 | 3 |
| Yanked % | 0.0% | 13.0% | 0.0% |
| Edition | 2018 | 2021 | 2018 |
| MSRV | — | 1.71 | — |
| 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.
- •⚠ string32, smallstr have not been updated in over a year.