| Crates.io | xxh3_hashid_macro |
| lib.rs | xxh3_hashid_macro |
| version | 0.1.0 |
| created_at | 2024-12-07 19:47:08.332294+00 |
| updated_at | 2024-12-07 19:47:08.332294+00 |
| description | XXH3 hashed identifier literals |
| homepage | https://github.com/elimerl/xxh3_hashid_macro |
| repository | https://github.com/elimerl/xxh3_hashid_macro |
| max_upload_size | |
| id | 1475852 |
| size | 3,717 |
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.
use xxh3_hashid_macro::hash;
let id = hash!("example_id");
println!("0x{:0>16x}", id); // 0xf826a9bb47f7ff34