Skip to content

tensorush/zig-quickphf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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 git+https://github.com/tensorush/zig-quickphf#<git_tag_or_commit_hash>
  • 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);