Zig port of the QuickPhf library created by Darko Trifunovski.
-
Add
quickphf
as a dependency in yourbuild.zig.zon
.build.zig.zon
example.{ .name = "<name_of_your_package>", .version = "<version_of_your_package>", .dependencies = .{ .quickphf = .{ .url = "https://github.com/tensorush/quickphf/archive/<git_tag_or_commit_hash>.tar.gz", .hash = "<package_hash>", }, }, .paths = .{ "src/", "build.zig", "README.md", "LICENSE.md", "build.zig.zon", }, }
Set
<package_hash>
to12200000000000000000000000000000000000000000000000000000000000000000
and build your package to find the correct value specified in a compiler error message. -
Add
quickphf
as a module in yourbuild.zig
.build.zig
exampleconst quickphf = b.dependency("quickphf", .{}); lib.root_module.addImport("quickphf", quickphf.module("quickphf"));