Decision Workspace
iterator_to_hash_map vs serde_json_any_key vs collect-once-hashmap
Side-by-side comparison of Rust crates
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`.
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.
35
collect-once-hashmap
growingv0.2.0
A hashmap that can be collected only when there are unique keys in the iterator
Core Metrics
| iterator_to_hash_map | serde_json_any_key | collect-once-hashmap | |
|---|---|---|---|
| Health Score | 31 | 60 | 35 |
| Total Downloads | 3.9K | 535.8K | 3.0K |
| 30d Downloads | 17 | 6.7K | 4 |
| Dependents | 0 | 18 | 0 |
| Releases | 1 | 5 | 2 |
| Last Updated | 3726d ago | 9d ago | 1668d ago |
| Age | 10y 2m | 3y 10m | 4y 6m |
Health Breakdown
iterator_to_hash_map
Maintenance
1
Quality
16
Community
2
Popularity
4
Documentation
8
serde_json_any_key
Maintenance
15
Quality
20
Community
8
Popularity
7
Documentation
10
collect-once-hashmap
Maintenance
3
Quality
15
Community
4
Popularity
4
Documentation
9
Technical Details
| iterator_to_hash_map | serde_json_any_key | collect-once-hashmap | |
|---|---|---|---|
| Version | 0.9.0 | 2.1.0 | 0.2.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | Unlicense | MPL-2.0 |
| Dependencies | 0 | 2 | 1 |
| Crate Size | 2KB | 11KB | 8KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | — | 2021 | 2018 |
| 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.
- •⚠ iterator_to_hash_map, collect-once-hashmap have not been updated in over a year.
- •iterator_to_hash_map, collect-once-hashmap are pre-1.0 — API may change.