seedable_hash

Crates.ioseedable_hash
lib.rsseedable_hash
version0.2.2
created_at2024-10-22 10:43:36.159593+00
updated_at2025-09-10 14:42:27.112919+00
descriptionThe library for calculating seedable hashes and fast reduction of their ranges.
homepage
repositoryhttps://github.com/beling/bsuccinct-rs
max_upload_size
id1418493
size12,525
Piotr Beling (beling)

documentation

https://docs.rs/seedable_hash

README

seedable_hash is the Rust library (by Piotr Beling) for calculating seedable hashes and fast reduction of their ranges.

seedable_hash conditionally supports hash functions from many crates:

  • GxHash - enabled by gxhash feature,
  • wyhash - enabled by (default) wyhash feature,
  • xxh3 - enabled by xxhash-rust feature,
  • rapidhash - enabled by rapidhash feature,
  • Sip13 using unstable standard library feature hashmap_internals - enabled by sip13 feature,
  • Fowler–Noll–Vo - enabled by fnv feature,
  • standard hash_map::DefaultHasher via [Seedable] wrapper - always enabled,
  • and others via [Seedable] wrapper.

[BuildDefaultSeededHasher] is an alias to the fastest of the enabled methods, selected according to the order of the above list.

We recommend GxHash (gxhash feature) on the platforms it supports.

For hashing integers, we recommend Fx Hash wrapped by [Seedable].

Commit count: 972

cargo fmt