Release v0.1.11-pre
Pre-release
Pre-release
ZAP Release v0.1.11-pre
Updates
Support for binary file transmission via FORM POST
This is supposed to close #41 (thx @edyu !).
See the bindataformpost example for more details.
Using it
To use in your own projects, put this dependency into your build.zig.zon
:
// zap v0.1.11-pre
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.1.11-pre.tar.gz",
.hash = "1220fc2f57c129585f511feb3cbe5dc2e9f8648f6e3c3b6f84642f812ab1efc40a14",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap v0.1.11-pre
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.1.11-pre.tar.gz",
.hash = "1220fc2f57c129585f511feb3cbe5dc2e9f8648f6e3c3b6f84642f812ab1efc40a14",
}
}
}
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"));