#hashing #murmur-hash #murmur #murmur2

murmur2

murmur2 hash functions - see docs.rs

1 unstable release

0.1.0 Feb 27, 2022

#5 in #murmur-hash

Download history 2284/week @ 2024-12-16 2199/week @ 2024-12-23 2029/week @ 2024-12-30 3908/week @ 2025-01-06 3888/week @ 2025-01-13 3581/week @ 2025-01-20 3807/week @ 2025-01-27 6854/week @ 2025-02-03 5259/week @ 2025-02-10 3465/week @ 2025-02-17 5337/week @ 2025-02-24 5700/week @ 2025-03-03 3938/week @ 2025-03-10 3404/week @ 2025-03-17 2592/week @ 2025-03-24 2329/week @ 2025-03-31

12,807 downloads per month
Used in 10 crates (4 directly)

Apache-2.0

8KB
150 lines

murmur2 Hash Functions

This is a pure Rust implementation of the murmur2 hash functions. It is tested against the original C++ implementation. To keep this crate no_std and dependency free, the tests live in a different crate, which is not published to crates.io. The implementations have not been particularly optimized for performance.

The original C++ implementations are architecture/endianness dependent. The only independent function provided is MurmurHashNeutral2. This crate does not follow that scheme, all functions are provided in an endianness-dependent and -independent version. The endianness-dependent versions have their name suffixed with a ne, for "native endian".

No runtime deps