wyhash
Rust implementation of the WyHash fast portable non-cryptographic hashing algorithm and random number generator.
0.6.0
9.9M downloads/mo
#3131 most downloaded on crates.io
eldruin/wyhash-rs
What this package is like to depend on
Last release 1 years ago
23 May 2025
Ships unpredictably
gaps range from 2 weeks to 4.4 years
Nearly every release is documented
notes for 9 of 9 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
9 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
9 releases · Mar 2019 to May 2025Releases
latest 9-
0.6.023 May 2025Release notes
Open source →Added
- Implemented
BuildHashertrait. - Ported
final3algorithm version. - Enable better performance on 32-bit systems via the
mum32bitfeature. - Benchmarks.
- Added derives for
Debug,PartialEq,Eq,PartialOrd,Ord,Copy, andHashfor all structs where applicable in the crate.
Changed
- [internal] Back-to-back tests now use compiled upstream C code instead of fixed result lists.
- [breaking-change] Updated to
rand_core0.9. - Updated MSRV to 1.63.0 due to the new
rand_coreversion.
Release notes
Open source →Added
- Implemented
BuildHashertrait. - Ported
final3algorithm version. - Enable better performance on 32-bit systems via the
mum32bitfeature. - Benchmarks.
- Added derives for
Debug,PartialEq,Eq,PartialOrd,Ord,Copy, andHashfor all structs where applicable in the crate.
Changed
- [internal] Back-to-back tests now use compiled upstream C code instead of fixed result lists.
- [breaking-change] Updated to
rand_core0.9. - Updated MSRV to 1.63.0 due to the new
rand_coreversion.
- Implemented
-
0.5.017 Dec 2020Release notes
Open source →Changed
- [breaking-change] Updated
rand_coredependency from version0.5to version0.6. This led to an increase in the Minimum Supported Rust Version from1.32.0to1.36.0.
- [breaking-change] Updated
-
0.4.207 Nov 2020Release notes
Open source →Added
- Implement
CloneforWyHashandWyRng. Thanks to @Restioson. - "
hasher" keyword for better discoverability. Thanks to @tkaitchuck. See: rust-lang/rust#77996
- Implement
-
0.4.128 Jun 2020 -
0.4.028 Jun 2020Release notes
Open source →Changed
- [breaking-change] Updated
rand_coredependency from version0.4to version0.5. This led to an increase in the Minimum Supported Rust Version from1.31.0to1.32.0.
- [breaking-change] Updated
-
0.3.002 Jun 2019Release notes
Open source →Fixed
- [breaking-change] The random number generator now uses only the updated seed
as the internal state instead of the last generated number. This leads to the
free function
wyrngfunction now receiving a mutable reference to the seed which will be used to represent the state, following the upstream interface. TheRngCoreandSeedableRngtrait implementations forWyRngwill return different numbers as in the last published version. See: https://github.com/eldruin/wyhash-rs/issues/1.
- [breaking-change] The random number generator now uses only the updated seed
as the internal state instead of the last generated number. This leads to the
free function
-
0.2.130 Mar 2019Release notes
Open source →Added
rand_core::RngCoreandrand_core::SeedableRngtrait implementations for the random number generator.- MIT license
-
0.2.023 Mar 2019Release notes
Open source →Added
- Added random number generation function.
- Added C++ program using the upstream library to generate the results used in the tests.
Changed
-
The standard library is not necessary any more. The hasher trait implemented now is
core::hash::Hasher, which is equivalent tostd::hash::Hasher. The code should continue to work without change but deactivating the default features forno_stdcompatibility is not necessary any more. -
The generated hashes have changed following the upstream project.
-
0.1.012 Mar 2019Release notes
Open source →This is the initial release to crates.io.
<!-- next-url --> [Unreleased]: https://github.com/eldruin/wyhash-rs/compare/v0.6.0...HEAD [0.6.0]: https://github.com/eldruin/wyhash-rs/compare/v0.5.0...v0.6.0 [0.5.0]: https://github.com/eldruin/wyhash-rs/compare/v0.4.2...v0.5.0 [0.4.2]: https://github.com/eldruin/wyhash-rs/compare/v0.4.1...v0.4.2 [0.4.1]: https://github.com/eldruin/wyhash-rs/compare/v0.4.0...v0.4.1 [0.4.0]: https://github.com/eldruin/wyhash-rs/compare/v0.3.0...v0.4.0 [0.3.0]: https://github.com/eldruin/wyhash-rs/compare/v0.2.1...v0.3.0 [0.2.1]: https://github.com/eldruin/wyhash-rs/compare/v0.2.0...v0.2.1 [0.2.0]: https://github.com/eldruin/wyhash-rs/compare/v0.1.0...v0.2.0