Release v0.1.8-pre
Pre-release
Pre-release
ZAP Release v0.1.8-pre
Updates
Zig Compatibility Community Update
@edyu aka @ed.yu aka @loganpug has done it again!
Saved ZAP from zig std library cleanup breakages! π π π
@intCast
,@alignCast
,@alignOf
,@prtCast
,@as
,@intCast
,@enumFromInt
,@truncate
... all have changed to a probably more consistent, in parts even more convenient, API.
Thanks for the hard work and providing a PR so quickly!
Using it
To use in your own projects, put this dependency into your build.zig.zon
:
// zap v0.1.8-pre
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.1.8-pre.tar.gz",
.hash = "1220e30645c293c943dccc9d4394f7088679cf0969c63a7f4b23f72e375744123729",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap v0.1.8-pre
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.1.8-pre.tar.gz",
.hash = "1220e30645c293c943dccc9d4394f7088679cf0969c63a7f4b23f72e375744123729",
}
}
}
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"));