Crates / Compare / foldhash vs rustc-hash
Rust crates side by side · data Oct 24, 2026
foldhash vs rustc-hash
Short answerBy steady daily use, foldhash is bigger: 3,043,165 real downloads a day against 2,998,135 for rustc-hash (1.0x). 333 crates depend on foldhash and 3,505 on rustc-hash. foldhash last shipped 14 months ago, rustc-hash 4 months ago.
foldhash
EstablishedEstablished and steady.
333 crates depend on it; no release in the last 90 days, so its count is all steady use.
A fast, non-cryptographic, minimally DoS-resistant hashing algorithm.
rustc-hash
Widely usedWidely used and steady.
3,505 crates depend on it; no release in the last 90 days, so its count is all steady use.
A speedy, non-cryptographic hashing algorithm used by rustc
foldhashrustc-hash · 100% = that crate's normal quiet day, so a spike to 300% is triple its usual traffic
Every number, side by side
| Same window, same method | foldhash | rustc-hash |
|---|---|---|
| Real downloads a day | 3,043,165 | 2,998,135 |
| Crates that depend on it | 333 | 3,505 |
| Last release | 0.2.0, 14 months ago | 2.1.3, 4 months ago |
| Trend vs the field | +6% | -2% |
| Release-window share | 0.0% | 0.0% |
| Downloads in the window | 284,307,575 | 265,103,975 |
| All-time downloads | 717,956,008 | 926,566,887 |
| Versions published | 7 | 9 |
| License | Zlib | Apache-2.0 OR MIT |
| MSRV | 1.60 | 1.77 |
| First published | Aug 12, 2024 | May 24, 2018 |
Which to pick
- Downloads tell you what is common, not what fits. Each crate's own description above says what it is for; when the jobs differ, pick by the job.
- When both fit, prefer the one more crates depend on (rustc-hash, 3,505 dependents): more eyes, more answered questions, and you may already have it in your tree.
- Check the release dates against your own pace: foldhash 14 months ago, rustc-hash 4 months ago.
Also in this space
Method
Real downloads = the median day with no release that day or the day before, from the crates.io API (Jul 27, 2026 to Oct 23, 2026). Raw crates.io counts include CI and bots and run high (why); the method is from our 90-day study.
Up next
Another comparison: Same method, same window. Widely used and steady vs established and steady.ahash vs foldhashRead it next →Also worth your time