Alternatives to generational-arena/slotmap/stable-vec
⚓ Rust 📅 2026-04-28 👤 surdeus 👁️ 1I am working on a project that requires many referential bi-directional links/connections between objects, and have come to the conclusion that using some form of Arena, and storing index values in the objects is a workable solution.
However, in evaluating the options for stable indexing I found (listed in title), they all were either unmaintained (generational-map), on life support (slotmap), or had some deep unsafe voodoo that I don't feel has been adequately tested in use by large projects (my opinion only) (stable-vec).
Based on the functionality provided currently, generational-arena would be the best solution, however it has been unmaintained for at least 3 years now, and I worry about future breakage. I could just copy/paste it into my crate, or maintain my own fork of the repository, but that is an extra step here.
Is there an up to date, maintained, and well supported and well used crate that is similar to those listed above, or solves the original stated problem (stable indexing)?
Thank you
1 post - 1 participant
🏷️ Rust_feed