release-0.0.22
Pre-release
Pre-release
renerocksai
released this
19 May 12:51
·
426 commits
to master
since this release
ZAP Release release-0.0.22
Updates
- synced to std.json updates. Thx to @edyu for the PR!
- no more
-localhost
workaround releases 🥳 since the TLS bug is fixed in zig master!
Using it
To use in your own projects, put this dependency into your build.zig.zon
:
// zap release-0.0.22
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.22.tar.gz",
.hash = "12204761c4f94997c3bd26f420cf9060541c0c09514370dc129e04b35e58d9f3ae71",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap release-0.0.22
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.22.tar.gz",
.hash = "12204761c4f94997c3bd26f420cf9060541c0c09514370dc129e04b35e58d9f3ae71",
}
}
}
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"));