#hash #hashing #murmur

murmur2

murmur2 hash functions - see docs.rs

1 unstable release

0.1.0 Feb 27, 2022

#2365 in Algorithms

Download history 717/week @ 2023-12-05 479/week @ 2023-12-12 612/week @ 2023-12-19 502/week @ 2023-12-26 726/week @ 2024-01-02 619/week @ 2024-01-09 601/week @ 2024-01-16 682/week @ 2024-01-23 661/week @ 2024-01-30 377/week @ 2024-02-06 313/week @ 2024-02-13 511/week @ 2024-02-20 498/week @ 2024-02-27 585/week @ 2024-03-05 464/week @ 2024-03-12 430/week @ 2024-03-19

2,039 downloads per month
Used in 5 crates (2 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