Registry / utility / phf-generator

phf-generator

JSON →
library0.13.1rscratesunverified

PHF generation logic for creating perfect hash functions at compile time.

# Cargo.toml [dependencies] phf_generator = "0.13.1"
INSTALL
IMPORT
SIG · PHF-GENERATOR
P
phf-generator
utilityrustv0.13.1
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.

generate_hash
use phf_generator::generate_hash;

Generates a perfect hash function from a list of keys.

use phf_generator::generate_hash; fn main() { let keys = vec!["a", "b", "c"]; let (map, _) = generate_hash(&keys); println!("Generated PHF with {} entries", map.len()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.13.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
phf-generator — cargo add phf-generator · libregistry