#hash #hashing #murmur

murmur2

murmur2 hash functions - see docs.rs

1 unstable release

0.1.0 Feb 27, 2022

#1543 in Algorithms

Download history 393/week @ 2024-07-19 411/week @ 2024-07-26 417/week @ 2024-08-02 377/week @ 2024-08-09 2234/week @ 2024-08-16 3229/week @ 2024-08-23 3303/week @ 2024-08-30 2754/week @ 2024-09-06 3094/week @ 2024-09-13 2849/week @ 2024-09-20 2609/week @ 2024-09-27 3349/week @ 2024-10-04 3309/week @ 2024-10-11 3036/week @ 2024-10-18 3487/week @ 2024-10-25 2975/week @ 2024-11-01

13,504 downloads per month
Used in 8 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