Decision Workspace
compact_string vs compact_str vs sinstr
Side-by-side comparison of Rust crates
39
compact_string
experimentalv0.1.0
Compact representation of UTF-8 Strings that are immutable and less than 256 bytes in length.
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.
Core Metrics
| compact_string | compact_str | sinstr | |
|---|---|---|---|
| Health Score | 39 | 52 | 47 |
| Total Downloads | 935 | 78.3M | 47 |
| 30d Downloads | 46 | 9.8M | 47 |
| Dependents | 1 | 5.1K | 0 |
| Releases | 1 | 20 | 4 |
| Last Updated | 333d ago | 396d ago | 2d ago |
| Age | 11m | 4y 6m | 3d |
Health Breakdown
compact_string
Maintenance
3
Quality
13
Community
7
Popularity
4
Documentation
12
compact_str
Maintenance
8
Quality
11
Community
15
Popularity
8
Documentation
10
sinstr
Maintenance
19
Quality
8
Community
6
Popularity
2
Documentation
12
Technical Details
| compact_string | compact_str | sinstr | |
|---|---|---|---|
| Version | 0.1.0 | 0.9.0 | 0.4.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 | MIT | MIT |
| Dependencies | 4 | 28 | 4 |
| Crate Size | 13KB | 72KB | 32KB |
| Features | 0 | 17 | 0 |
| Yanked % | 0.0% | 15.0% | 25.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | 1.70.0 | — | 1.91 |
| 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.