Zig port of quickphf library for static hash map generation.
- Add
quickphf
dependency tobuild.zig.zon
.
zig fetch --save https://github.com/tensorush/zig-quickphf/archive/<git_tag_or_commit_hash>.tar.gz
- Use
quickphf
dependency inbuild.zig
.
const quickphf_dep = b.dependency("quickphf", .{
.target = target,
.optimize = optimize,
});
const quickphf_mod = quickphf_dep.module("quickphf");
<compile>.root_module.addImport("quickphf", quickphf_mod);