rustc-hash
A speedy, non-cryptographic hashing algorithm used by rustc
2.1.3
730M downloads/mo
#109 most downloaded on crates.io
rust-lang/rustc-hash
What this package is like to depend on
Last release 1 months ago
02 Jul 2026
Ships unpredictably
gaps range from 3 weeks to 4.3 years
Some releases are documented
notes for 3 of 8 stable releases
1 version withdrawn
withdrawn after publishing
8 years old
9 releases · first in 2018
2 releases in the last 12 months
see the full history below
Release timeline
9 releases · May 2018 to Jul 2026Releases
latest 9-
2.1.302 Jul 2026 -
2.1.228 Mar 2026 -
2.1.105 Feb 2025Release notes
Open source →- Change the internal algorithm to better accomodate large hashmaps. This mitigates a regression with 2.0 in rustc. See PR#55 for more details on the change (this PR was not merged). This problem might be improved with changes to hashbrown in the future.
2.1.0
- Implement
CloneforFxRandomState - Implement
CloneforFxSeededState - Use SPDX license expression in license field
2.0.0
- Replace hash with faster and better finalized hash.
This replaces the previous "fxhash" algorithm originating in Firefox
with a custom hasher designed and implemented by Orson Peters (
@orlp). It was measured to have slightly better performance for rustc, has better theoretical properties and also includes a significantly better string hasher. - Fix
no_stdbuilds
1.2.0 (YANKED)
Note: This version has been yanked due to issues with the
no_stdfeature!- Add a
FxBuildHasherunit struct - Improve documentation
- Add seed API for supplying custom seeds other than 0
- Add
FxRandomStatebased onrand(behind therandfeature) for random seeds - Make many functions
const fn - Implement
CloneforFxHasherstruct
-
2.1.030 Nov 2024Nothing published for this version
-
2.0.018 Jun 2024Nothing published for this version
-
1.2.028 May 2024 withdrawnNothing published for this version
-
1.1.008 Feb 2020Nothing published for this version
-
1.0.128 May 2018Nothing published for this version
-
1.0.024 May 2018Nothing published for this version