release-0.0.9
Pre-release
Pre-release
renerocksai
released this
21 Apr 21:22
·
512 commits
to master
since this release
To use in your own projects, put this dependency into your build.zig.zon
:
// zap 0.0.9
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.9.tar.gz",
.hash = "122037f519825a7fa26fd0be936eb638789b8bf208741ce7aa64e42ea4deefed3529",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap 0.0.9
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.9.tar.gz",
.hash = "122037f519825a7fa26fd0be936eb638789b8bf208741ce7aa64e42ea4deefed3529",
}
}
}
Then, in your build.zig
's build
function, add the following before
exe.install()
:
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));