xxh3_hashid_macro 0.1.0

XXH3 hashed identifier literals
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 4.29 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 247.34 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • elimerl/xxh3_hashid_macro
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • elimerl

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