Added zig source as well
Why not, it was due for long time. If you guys manage to find exploits some how, please send than use them malciouly.
This commit is contained in:
parent
a95a61d005
commit
a2426dee1c
2 changed files with 315 additions and 0 deletions
18
genserve/build.zig
Normal file
18
genserve/build.zig
Normal file
|
@ -0,0 +1,18 @@
|
|||
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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue