Registry / utility / murmur3

murmur3

JSON →
library0.5.2rscratesunverified

A pure Rust implementation of the Murmur3 non-cryptographic hash function.

# Cargo.toml [dependencies] murmur3 = "0.5.2"
INSTALL
IMPORT
SIG · MURMUR3
M
murmur3
utilityrustv0.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

murmur3_32
use murmur3::murmur3_32;

Computes a Murmur3 32-bit hash from a byte stream with a given seed.

use murmur3::murmur3_32; use std::io::Cursor; fn main() { let mut cursor = Cursor::new(b"hello"); let hash = murmur3_32(&mut cursor, 0).unwrap(); println!("Hash: {}", hash); }
Debug
Known issues
gotchaThe function returns a Result; forgetting to unwrap may cause compilation errors.
fix
Always handle the Result, e.g., with .unwrap() or proper error propagation.
affects: >=0.5.0
Upgrade
Version history
0.5.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
murmur3 — cargo add murmur3 · libregistry