Rust Rewrite Index

gperf

Perfect hash function generator

Rust efforts

Research record · 2026-11-29

Searched GNU gperf perfect hash generator (distinct from Google gperftools), Rust ports and Rust compile-time perfect hashing. rust-phf is an independent Rust library with a different interface; no direct GNU gperf port surfaced in these sources.

Original source check. The packaged source scan found zero files with the .rs suffix. This covers the Debian 13 snapshot and excludes common vendor directories. Independent repositories are outside this count.

Rust alternative

rust-phf

Rust compile-time perfect hash maps and sets, an alternative technique rather than a port of GNU gperf or a compatible gperf CLI.

Evidence checked 2026-11-29

Project structure

gperf is a program that generates perfect hash functions for sets of key words.

Inside the source tree

Source files by extension in this snapshot · C++ (13), C (4)

Selected components packaged from this source in Debian 13.

  • gperf · Perfect hash function generator