Zig · Installation

Installation

4.0.0-rc.1 · f2ef38ea

Ask your coding agent about this page, or add the docs server to it

curl -s 'https://www.unum.cloud/docs/forkunion/zig/installation.md' | claude -p "How would this fit my code?"

To integrate into your Zig project, let zig fetch pin the dependency and its content hash into build.zig.zon:

zig fetch --save=forkunion https://github.com/ashvardanian/ForkUnion/archive/refs/tags/v4.0.0-rc.1.tar.gz

That records the dependency; build.zig still has to wire it, and the module carries the compiled artifact so a consumer does not relink it by hand:

const forkunion = b.dependency("forkunion", .{ .target = target, .optimize = optimize });
exe.root_module.addImport("forkunion", forkunion.module("forkunion"));