Zig port of quickphf library for static hash map generation.
- Add
quickphf
dependency tobuild.zig.zon
:
zig fetch --save git+https://github.com/tensorush/zig-quickphf.git
- Use
quickphf
dependency inbuild.zig
:
const quickphf_dep = b.dependency("quickphf", .{
.target = target,
.optimize = optimize,
});
const quickphf_mod = quickphf_dep.module("quickphf");
...
.imports = &.{
.{ .name = "quickphf", .module = quickphf_mod },
},
...