release-0.0.17
Pre-release
Pre-release
renerocksai
released this
09 May 02:38
·
459 commits
to master
since this release
ZAP Release release-0.0.17
Update
UserPassSession Authentication!!! See the README for a pointer to the example.
Using it
To use in your own projects, put this dependency into your build.zig.zon
:
// zap release-0.0.17
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.17.tar.gz",
.hash = "12204e63afe2c140de953b584f6b0eca26135c072a74de76ea9ff37ad59fc2031d32",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap release-0.0.17
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.17.tar.gz",
.hash = "12204e63afe2c140de953b584f6b0eca26135c072a74de76ea9ff37ad59fc2031d32",
}
}
}
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"));