Skip to content

zig-0.14, zig-0.15

Latest

Choose a tag to compare

@42LM 42LM released this 31 Dec 21:42
· 1 commit to main since this release
1b2a27b

Using it

In your zig project folder (where build.zig is located), run:

zig fetch --save "git+https://github.com/42LM/zig-package-manager-example#zig-0.15"

Then, in your build.zig's build function, add the following before
b.installArtifact(exe):

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