/polymurhash-zig

PolymurHash port in Zig.

Primary LanguageZigzlib LicenseZlib

polymurhash-zig

Zig port of PolymurHash by Orson Peters.

Usage

  1. Create or modify the build.zig.zon file in the project root to include polymurhash-zig as a dependency.

    build.zig.zon example
    .{
        .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.

  2. Add polymurhash-zig as a dependency in build.zig.

    build.zig example
    const polymurhash = b.dependency("polymurhash", .{});
    exe.addModule("polymurhash", polymurhash.module("polymurhash"));