#hash #hashing #murmur

murmur2

murmur2 hash functions - see docs.rs

1 unstable release

0.1.0 Feb 27, 2022

#2678 in Algorithms

Download history 2845/week @ 2024-09-21 2709/week @ 2024-09-28 3298/week @ 2024-10-05 3335/week @ 2024-10-12 3015/week @ 2024-10-19 3463/week @ 2024-10-26 2913/week @ 2024-11-02 3628/week @ 2024-11-09 2831/week @ 2024-11-16 2396/week @ 2024-11-23 2519/week @ 2024-11-30 2075/week @ 2024-12-07 2134/week @ 2024-12-14 2181/week @ 2024-12-21 2171/week @ 2024-12-28 3267/week @ 2025-01-04

9,987 downloads per month
Used in 9 crates (3 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