| Crates.io | murmurs |
| lib.rs | murmurs |
| version | 1.0.5 |
| created_at | 2025-06-12 09:22:30.943613+00 |
| updated_at | 2025-06-12 09:47:50.911522+00 |
| description | 🫆 A reliable and production-ready implementation of the Murmur3 hash function in Rust |
| homepage | https://github.com/owengombas/murmurs |
| repository | https://github.com/owengombas/murmurs |
| max_upload_size | |
| id | 1709614 |
| size | 13,536 |
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.
Add the following to your Cargo.toml:
[dependencies]
murmurs = "1.0" # or the latest published version
use murmurs::murmur3_x86_32;
fn main() {
let hash = murmur3_x86_32(b"hello world", 0);
println!("{}", hash);
}
Then run:
cargo run
The implementation is automatically tested against the reference C++ implementation from smhasher using FFI bindings.
To run the tests:
cargo test
MurmurHash3.cpp