NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #454 most downloaded on crates.io
A Rust implementation of the XXHash and XXH3 algorithms
Last release 3 days ago
04 Oct 2026
Ships unpredictably
gaps range from 2 weeks to 2.5 years
Some releases are documented
notes for 8 of 23 stable releases
2 versions withdrawn
withdrawn after publishing
11 years old
25 releases · first in 2015
[2.1.5]: https://github.com/shepmaster/twox-hash/tree/v2.1.5
XxHash3_64::oneshotXxHash3_64::oneshot_with_seedXxHash3_128::oneshotXxHash3_128::oneshot_with_seed[2.1.4]: https://github.com/shepmaster/twox-hash/tree/v2.1.4
One column per quarter.
[2.1.3]: https://github.com/shepmaster/twox-hash/tree/v2.1.3
XxHash32 or XxHash64
in debug mode. Release mode is unaffected.rand dependency now allows 0.10
in addition to 0.9.[2.1.2]: https://github.com/shepmaster/twox-hash/tree/v2.1.2
XxHash3_128.[2.1.1]: https://github.com/shepmaster/twox-hash/tree/v2.1.1
rand dependency is now 0.9.[2.1.0]: https://github.com/shepmaster/twox-hash/tree/v2.1.0
XxHash3_128 and the
xxhash3_128 module.[2.0.1]: https://github.com/shepmaster/twox-hash/tree/v2.0.1
XxHash3_64 to hash 1
to 3 bytes of data in debug mode. Release mode and different lengths
of data are unaffected.The deprecated type aliases XxHash and RandomXxHashBuilder have been removed. Replace them with XxHash64 and xxhash64::RandomState respectively.
This release is a complete rewrite of the crate, including reorganization of the code. The XXH3 algorithm now matches the 0.8 release of the reference C xxHash implementation.
XxHash32::oneshot and XxHash64::oneshot can perform hashing with
zero allocation and generally improved performance. If you have code
that creates a hasher and hashes a slice of bytes exactly once, you
are strongly encouraged to use the new functions. This might look
like:
// Before
let mut hasher = XxHash64::new(); // or XxHash32, or with seeds
some_bytes.hash(&mut hasher);
let hash = hasher.finish();
// After
let hash = XxHash64::oneshot(some_bytes);
There is a feature flag for each hashing implementation. It is recommended that you opt-out of the crate's default features and only select the implementations you need to improve compile speed.
The crates minimum supported Rust version (MSRV) is now 1.81.
Functional and performance comparisons are made against the reference C xxHash library version 0.8.2, which includes a stable XXH3 algorithm.
Support for randomly-generated hasher instances is now behind the
random feature flag. It was previously combined with the std
feature flag.
The deprecated type aliases XxHash and RandomXxHashBuilder have
been removed. Replace them with XxHash64 and
xxhash64::RandomState respectively.
RandomXxHashBuilder32 and RandomXxHashBuilder64 are no longer
available at the top-level of the crate. Replace them with
xxhash32::RandomState and xxhash64::RandomState respectively.
Xxh3Hash64 and xx3::Hash64 have been renamed to XxHash3_64 and
xxhash3_64::Hasher respectively.
The free functions xxh3::hash64, xxh3::hash64_with_seed, and
xxh3::hash64_with_secret are now associated functions of
xxhash3_64::Hasher: oneshot, oneshot_with_seed and
oneshot_with_secret. Note that the argument order has changed.
Support for the digest crate has been removed. The digest crate is for cryptographic hash functions and xxHash is non-cryptographic.
XxHash32 and XxHash64 no longer implement Copy. This prevents
accidentally mutating a duplicate instance of the state instead of
the original state. Clone is still implemented so you can make
deliberate duplicates.
The XXH3 128-bit variant is not yet re-written. Work is in progress for this.
We no longer provide support for randomly-generated instances of the XXH3 64-bit variant. The XXH3 algorithm takes both a seed and a secret as input and deciding what to randomize is non-trivial and can have negative impacts on performance.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →