#arc #rc #b-tree #weak

no-std weak-map

BTreeMap with weak references

3 releases

Uses new Rust 2024

0.1.2 Oct 4, 2025
0.1.1 Jul 2, 2025
0.1.0 Apr 21, 2025

#1759 in Data structures

Download history 68/week @ 2025-10-13 103/week @ 2025-10-20 29/week @ 2025-10-27 73/week @ 2025-11-03 277/week @ 2025-11-10 393/week @ 2025-11-17 185/week @ 2025-11-24 108/week @ 2025-12-01 298/week @ 2025-12-08 217/week @ 2025-12-15 73/week @ 2025-12-22 97/week @ 2025-12-29 110/week @ 2026-01-05 109/week @ 2026-01-12 128/week @ 2026-01-19 805/week @ 2026-01-26

1,165 downloads per month
Used in starry-process

MIT/Apache

22KB
591 lines

WeakMap is a wrapper over BTreeMap that stores weak references to values.


weak-map: BTreeMap with weak references

Crates.io docs.rs

This is similar to and inspired by weak-table, but using BTreeMap as underlying implementation.

No runtime deps