303 releases (30 breaking)

Uses new Rust 2024

0.32.0-alpha.1 Apr 29, 2026
0.31.1 Mar 31, 2026
0.28.1 Dec 19, 2025
0.28.0-alpha.0 Nov 21, 2025
0.4.0 Mar 28, 2023

#764 in Rust patterns

Download history 21640/week @ 2026-01-19 23340/week @ 2026-01-26 23562/week @ 2026-02-02 24225/week @ 2026-02-09 16020/week @ 2026-02-16 23614/week @ 2026-02-23 26088/week @ 2026-03-02 24526/week @ 2026-03-09 24327/week @ 2026-03-16 30741/week @ 2026-03-23 33266/week @ 2026-03-30 26432/week @ 2026-04-06 28557/week @ 2026-04-13 24453/week @ 2026-04-20 28294/week @ 2026-04-27 25792/week @ 2026-05-04

108,128 downloads per month
Used in 150 crates (3 directly)

MIT/Apache

69KB
1K SLoC

Yet another string interning library.

The main thing that makes this library different is that InternedString stores the hash of the string, which makes using it in lookups is really fast, especially when using nohash_hasher::IntMap.

The hash is assumed to be perfect, which means this library accepts the risk of hash collisions!

The interned strings are never freed, so don't intern too many things.


Yet another string interning library

Part of the rerun family of crates.

Latest version Documentation MIT Apache

String interning is a way to reduce memory use by detecting duplicated string and storing them only once.

The main thing that makes this library different is that InternedString stores the hash of the string, which makes using it in lookups is really fast, especially when using nohash_hasher::IntMap.

The hash is assumed to be perfect, which means this library accepts the risk of hash collisions!

The interned strings are never freed, so don't intern too many things.

Dependencies

~20MB
~369K SLoC