testing new zig
Pre-release
Pre-release
·
591 commits
to master
since this release
ZAP Release release-0.0.12-test
To use in your own projects, put this dependency into your build.zig.zon
:
// zap release-0.0.12-test
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.12-test.tar.gz",
.hash = "12201a5586b87c689c5c9f00075e84affc5207b0e2596efab0355025031da148d072",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap release-0.0.12-test
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.12-test.tar.gz",
.hash = "12201a5586b87c689c5c9f00075e84affc5207b0e2596efab0355025031da148d072",
}
}
}
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"));