Decision Workspace
collect-once-hashmap vs serde_json_any_key vs iterator_to_hash_map
Side-by-side comparison of Rust crates
35
collect-once-hashmap
growingv0.2.0
A hashmap that can be collected only when there are unique keys in the iterator
60
serde_json_any_key
stablev2.1.0
Workaround for "key must be a string" error with serde_json. De/serialize any HashMap<K,V>, Vec<K,V>, Iter<(&K,&V)>, or Iter<&(K,V)> as a JSON map.
31
iterator_to_hash_map
growingv0.9.0
A Rust crate that adds a method to any `Iterator` or `IntoIterator` (such as `Vec`) that converts it to a `HashMap` using the trait `ToHashMap`.
Core Metrics
| collect-once-hashmap | serde_json_any_key | iterator_to_hash_map | |
|---|---|---|---|
| Health Score | 35 | 60 | 31 |
| Total Downloads | 3.0K | 535.8K | 3.9K |
| 30d Downloads | 4 | 6.7K | 17 |
| Dependents | 0 | 18 | 0 |
| Releases | 2 | 5 | 1 |
| Last Updated | 1668d ago | 9d ago | 3726d ago |
| Age | 4y 6m | 3y 10m | 10y 2m |
Health Breakdown
collect-once-hashmap
Maintenance
3
Quality
15
Community
4
Popularity
4
Documentation
9
serde_json_any_key
Maintenance
15
Quality
20
Community
8
Popularity
7
Documentation
10
iterator_to_hash_map
Maintenance
1
Quality
16
Community
2
Popularity
4
Documentation
8
Technical Details
| collect-once-hashmap | serde_json_any_key | iterator_to_hash_map | |
|---|---|---|---|
| Version | 0.2.0 | 2.1.0 | 0.9.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MPL-2.0 | Unlicense | MIT |
| Dependencies | 1 | 2 | 0 |
| Crate Size | 8KB | 11KB | 2KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | — |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •serde_json_any_key leads with a health score of 60/100, but none of the options score above 80.
- •⚠ collect-once-hashmap, iterator_to_hash_map have not been updated in over a year.
- •collect-once-hashmap, iterator_to_hash_map are pre-1.0 — API may change.