Zig port of PolymurHash by Orson Peters.
-
Create or modify the
build.zig.zonfile in the project root to includepolymurhash-zigas a dependency.build.zig.zonexample.{ .name = "<name of your program>", .version = "<version of your program>", .dependencies = .{ .polymurhash = .{ .url = "https://github.com/e4m2/polymurhash-zig/archive/refs/tags/<git tag>.tar.gz", .hash = "<package hash>", }, }, }If unsure what to fill out for
<package hash>, remove the field entirely and Zig will tell you the correct value in an error message. -
Add
polymurhash-zigas a dependency inbuild.zig.build.zigexampleconst polymurhash = b.dependency("polymurhash", .{}); exe.addModule("polymurhash", polymurhash.module("polymurhash"));