xxh3_hashid_macro

Crates.ioxxh3_hashid_macro
lib.rsxxh3_hashid_macro
version0.1.0
created_at2024-12-07 19:47:08.332294+00
updated_at2024-12-07 19:47:08.332294+00
descriptionXXH3 hashed identifier literals
homepagehttps://github.com/elimerl/xxh3_hashid_macro
repositoryhttps://github.com/elimerl/xxh3_hashid_macro
max_upload_size
id1475852
size3,717
Eli (elimerl)

documentation

https://docs.rs/xxh3_hashid_macro

README

xxh3_hashid_macro

This crate provides a macro that allows XXH3 "hashed identifiers" to be created at compile time. Mostly useful for games, but you may find another use for it.

Example

use xxh3_hashid_macro::hash;
let id = hash!("example_id");
println!("0x{:0>16x}", id); // 0xf826a9bb47f7ff34
Commit count: 2

cargo fmt