Crates / rustc-hash / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to rustc-hash
Short answerThe closest alternatives to rustc-hash on crates.io data are foldhash (3M real downloads a day), ahash (2M real downloads a day), siphasher (2M real downloads a day). Of the 8 we list, the most used is hashbrown, and 5 shipped a release in the last year. rustc-hash itself gets 2,998,135 a day with 3,505 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs rustc-hash | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| foldhash Established | 3,043,165 | 1.02x | 333 | 14mo | keyword "hash", keyword "hasher" | side by side |
| ahash Widely used | 1,968,676 | 0.66x | 2,097 | 18mo | keyword "hash", keyword "hasher" | compare |
| siphasher Established | 1,957,258 | 0.65x | 274 | 29d | keyword "hash", keyword "hasher" | compare |
| twox-hash Established | 763,473 | 0.25x | 394 | 20d | keyword "hash", keyword "hasher" | compare |
| xxhash-rust Widely used | 425,794 | 0.14x | 1,000 | 26d | keyword "hash", keyword "hasher" | compare |
| nohash-hasher Established | 324,114 | 0.11x | 224 | 6.7y | keyword "hash", keyword "hasher" | compare |
| hashbrown Widely used | 8,927,960 | 2.98x | 2,468 | 6mo | keyword "hash" | compare |
| digest Widely used | 3,862,411 | 1.29x | 1,197 | 6mo | keyword "hash" | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with rustc-hash; read its description before you swap.
- More dependents means more answered questions and a smaller chance it disappears.
- Check the last release against how fast you need fixes. For rustc-hash: is it still maintained?
Rules
Alternatives = tracked crates (top 1000 by downloads) that share a specific crates.io category (2 points each) or keyword (3 points each) with rustc-hash, most similar first; its own parts (same name prefix) and crates it depends on or that depend on it are left out, because those are companions, not substitutes. Real downloads = quiet-day median, crates.io data Oct 24, 2026. Built when we find 3 or more.
Up next
The closest alternative: Established and steady. 3,043,165 real downloads a day.foldhashRust crate. A fast, non-cryptographic, minimally DoS-resistant hashing algorithm. Real use: 3M downloads a day on quiet days; 333 crates depend on it.Read it next →Also worth your time