wasmserve: best-effort update to latest Zig build API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-02-08 01:46:27 -07:00 committed by Stephen Gutekanst
parent fc45fd594e
commit 9afb9e041b
3 changed files with 18 additions and 933 deletions

View file

@ -18,7 +18,7 @@ Then in your `build.zig` add:
...
const wasmserve = @import("libs/wasmserve/wasmserve.zig");
pub fn build(b: *Builder) void {
pub fn build(b: *Build) void {
...
const serve_step = try wasmserve.serve(exe, .{ .watch_paths = &.{"src/main.zig"} });
const run_step = b.step("run", "Run development web server");