Release v0.1.12-pre
Pre-release
Pre-release
ZAP Release v0.1.12-pre
Updates
Multi-File Form Upload
Our power-user @edyu tested the file upload from the previous release
and reported it only supports single files.
This is fixed in this release. The bindataformpost
example has been
updated, too.
Many thanks to @edyu for pushing the state of Zap forward!
Using it
To use in your own projects, put this dependency into your build.zig.zon
:
// zap v0.1.12-pre
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.1.12-pre.tar.gz",
.hash = "1220326b9075805c0b9982a80fb641e04ff31deacec011b1f46de0b75d6a6af26d26",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap v0.1.12-pre
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.1.12-pre.tar.gz",
.hash = "1220326b9075805c0b9982a80fb641e04ff31deacec011b1f46de0b75d6a6af26d26",
}
}
}
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"));