Repository navigation
v2.0.0
What's Changed
- Breaking: major refactor, hash output changes, and added compatibility for the V2 and V3 rapidhash algorithms.
- Breaking, in-memory hashing:
RapidHasher,RandomState, andRapidHashMapetc. have been moved torapidhash::fast::RapidHasherandrapidhash::quality::RapidHasher.- The
qualityvariant is similar to the oldRapidHasherv1.x.x crate versions, with some performance improvements. - The
fastvariant is faster still by using FNV on integer types and skipping the final avalanche step. - An
innermodule is also available, to precisely configure rapidhash with compile time flags described in the README and docs.
- The
- Breaking, persistent hashing:
rapidhash(bytes)moves torapidhash::v3::rapidhash(bytes), with a module for each version.- For compatibility with the v1.x.x crate versions,
rapidhash::v1::rapidhash_inline::<false, false, true>(bytes, seed)should be used.
- For compatibility with the v1.x.x crate versions,
Announcement on future versioning:
- Persistent hash functions (
rapidhash_v3(bytes)and similar methods) have a fixed hash output. New algorithm versions will be released as new functions. If there are ever further breaking changes to an existing function, this will only be done via a major version increment. - In-memory hashing with the rust
Hashertrait (RapidHasherand related structs), may change its hash output between minor version increments. TheHashertrait does not guarantee stable hash outputs between rust compiler versions, and this also allows us to rapidly improve the in-memory hasher.
Full Changelog: https://github.com/hoxxep/rapidhash/blob/master/CHANGELOG.md