Installation
Add zig-injection to your build.zig.zon:
zig fetch --save git+https://github.com/zig-utils/zig-injection
Then wire the module up in build.zig:
const injection = b.dependency("injection", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("injection", injection.module("injection"));
Requires Zig 0.17.0-dev.1441+d5181a9c9 or newer.
Or through Pantry:
pantry add zig-injection