Crate xxh3_hashid_macro

Crate xxh3_hashid_macro 

Source
Expand description
use xxh3_hashid_macro::hash;
let id = hash!("example_id");
println!("0x{:0>16x}", id); // 0xf826a9bb47f7ff34

Macrosยง

hash
Accepts a string literal and returns its XXH3 64-bit hash as a u64. Uses a non-configurable seed of 0.