🫆 murmurs: A Reliable Murmur3 Hash in Rust
murmurs provides a reliable and production-ready implementation of the Murmur3 hash function, faithfully translated from the original C++ reference and usable in the same way.
The core logic resides in src/murmur3.rs, and its correctness is verified against the latest version of the official smhasher implementation through tests using C FFI bindings.
📦 Installation
Add the following to your Cargo.toml:
[]
= "1.0" # or the latest published version
🚀 Usage
use murmur3_x86_32;
Then run:
✅ Testing
The implementation is automatically tested against the reference C++ implementation from smhasher using FFI bindings.
To run the tests:
🔒 Status
- ✅ Verified against the original
MurmurHash3.cpp - ✅ Consistent 32-bit and 128-bit output
- ✅ Portable and deterministic
- ✅ Can be used the same way as the C++ reference