Skip to content

tensorush/zig-quickphf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-quickphf

CI CD DC LC

Zig port of quickphf library for static hash map generation.

🚀 Usage

  • Add quickphf dependency to build.zig.zon.
zig fetch --save https://github.com/tensorush/zig-quickphf/archive/<git_tag_or_commit_hash>.tar.gz
  • Use quickphf dependency in build.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);