Decision Workspace
weak-map vs weak-table vs pin-weak
Side-by-side comparison of Rust crates
52
weak-map
growingv0.1.2
BTreeMap with weak references
62
weak-table
growingv0.4.0
Weak hash maps and sets
60
pin-weak
growingv1.1.0
Small wrapper around an equivalent of Pin<Weak<T>>
Core Metrics
| weak-map | weak-table | pin-weak | |
|---|---|---|---|
| Health Score | 52 | 62 | 60 |
| Total Downloads | 72.6K | 5.4M | 2.6M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 47 | 549 | 375 |
| Releases | 3 | 16 | 2 |
| Last Updated | 370d ago | 66d ago | 1775d ago |
| Age | 1y 5m | 8y 7m | 6y 2m |
Health Breakdown
weak-map
Maintenance
6
Quality
16
Community
11
Popularity
6
Documentation
13
weak-table
Maintenance
12
Quality
16
Community
14
Popularity
8
Documentation
12
pin-weak
Maintenance
3
Quality
23
Community
14
Popularity
8
Documentation
12
Technical Details
| weak-map | weak-table | pin-weak | |
|---|---|---|---|
| Version | 0.1.2 | 0.4.0 | 1.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 0 | 5 | 0 |
| Crate Size | 10KB | 56KB | 4KB |
| Features | 0 | 2 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2018 |
| MSRV | — | 1.65.0 | — |
| Owners | 1 | 2 | 2 |
Links
Quick Verdict
- •weak-table leads with a health score of 62/100, but none of the options score above 80.
- •weak-table is depended on by 549 crates — strongest ecosystem trust.
- •⚠ weak-map, pin-weak have not been updated in over a year.
- •weak-map, weak-table are pre-1.0 — API may change.