Decision Workspace
small_hash_map vs smol_strc vs compact-map
Side-by-side comparison of Rust crates
49
small_hash_map
experimentalv1.0.1
A hash map optimized for small collections with automatic stack-to-heap transition
50
smol_strc
experimentalv0.3.6
smol_str forks, replace Arc with Rc
41
compact-map
growingv0.1.0
'Small map' optimization: store up to a small number of key-value pairs on the stack.
Core Metrics
| small_hash_map | smol_strc | compact-map | |
|---|---|---|---|
| Health Score | 49 | 50 | 41 |
| Total Downloads | 39 | 308 | 1.5K |
| 30d Downloads | 5 | 63 | 6 |
| Dependents | 0 | 0 | 0 |
| Releases | 2 | 4 | 1 |
| Last Updated | 65d ago | 23d ago | 708d ago |
| Age | 2m | 4m | 1y 11m |
Health Breakdown
small_hash_map
Maintenance
10
Quality
18
Community
6
Popularity
2
Documentation
13
smol_strc
Maintenance
18
Quality
14
Community
3
Popularity
3
Documentation
12
compact-map
Maintenance
1
Quality
18
Community
5
Popularity
4
Documentation
13
Technical Details
| small_hash_map | smol_strc | compact-map | |
|---|---|---|---|
| Version | 1.0.1 | 0.3.6 | 0.1.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 8 | 1 |
| Crate Size | 16KB | 29KB | 19KB |
| Features | 0 | 3 | 5 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | — | 1.89 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •smol_strc leads with a health score of 50/100, but none of the options score above 80.
- •compact-map has the most downloads (1.5K), suggesting wider adoption.
- •⚠ compact-map has not been updated in over a year.
- •smol_strc, compact-map are pre-1.0 — API may change.