19 stable releases

1.11.2 Mar 8, 2025
1.10.0 Dec 19, 2023
1.9.0 Aug 10, 2023
1.8.1 Apr 5, 2023
0.1.3 Dec 28, 2018

#41 in Data structures

Download history 47698/week @ 2025-03-03 47075/week @ 2025-03-10 49655/week @ 2025-03-17 50731/week @ 2025-03-24 50911/week @ 2025-03-31 50914/week @ 2025-04-07 56733/week @ 2025-04-14 51835/week @ 2025-04-21 57078/week @ 2025-04-28 60693/week @ 2025-05-05 52670/week @ 2025-05-12 57799/week @ 2025-05-19 54397/week @ 2025-05-26 56928/week @ 2025-06-02 60825/week @ 2025-06-09 66566/week @ 2025-06-16

242,086 downloads per month
Used in 201 crates (42 directly)

MIT/Apache

88KB
1.5K SLoC

🎵 Immutability never bothered me anyway 🎶

This crate provides various "Frozen" collections.

These are append-only collections where references to entries can be held on to even across insertions. This is safe because these collections only support storing data that's present behind some indirection -- i.e. String, Vec<T>, Box<T>, etc, and they only yield references to the data behind the allocation (&str, &[T], and &T respectively)

The typical use case is having a global cache of strings or other data which the rest of the program borrows from.


elsa

Build Status Current Version License: MIT/Apache-2.0

🎵 Immutability never bothered me anyway 🎶

This crate provides various "frozen" collections.

These are append-only collections where references to entries can be held on to even across insertions. This is safe because these collections only support storing data that's present behind some indirection -- i.e. String, Vec<T>, Box<T>, etc, and they only yield references to the data behind the allocation (&str, &[T], and &T respectively)

The typical use case is having a global cache of strings or other data which the rest of the program borrows from.

Running all examples

cargo test --examples --features indexmap

Dependencies

~170KB