Why not, it was due for long time. If you guys manage to find exploits some how, please send than use them malciouly.
18 lines
500 B
Zig
18 lines
500 B
Zig
const std = @import("std");
|
|
|
|
// zig fetch --save git+https://github.com/karlseguin/http.zig#master
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const exe = b.addExecutable(.{
|
|
.name = "genserve",
|
|
.root_source_file = b.path("src/main.zig"),
|
|
.target = b.graph.host,
|
|
});
|
|
const httpz = b.dependency("httpz", .{
|
|
.target = b.graph.host,
|
|
// .optimize = .standardOptimizeOption
|
|
});
|
|
|
|
exe.root_module.addImport("httpz", httpz.module("httpz"));
|
|
b.installArtifact(exe);
|
|
}
|