diff --git a/examples/zig-examples/build.zig b/examples/zig-examples/build.zig index aa1891d..61ac3cd 100644 --- a/examples/zig-examples/build.zig +++ b/examples/zig-examples/build.zig @@ -45,11 +45,11 @@ const examples = &[_]Example{ .root_source_file = .{ .path = "src/params.zig" }, .path = "params/[id]", }, - .{ - .name = "router", - .root_source_file = .{ .path = "src/router.zig" }, - .path = "router/[...path]", - }, + //.{ + // .name = "router", + // .root_source_file = .{ .path = "src/router.zig" }, + // .path = "router/[...path]", + //}, }; const Example = struct { @@ -64,7 +64,7 @@ pub fn build(b: *std.Build) !void { const optimize = b.standardOptimizeOption(.{}); const wws_dep = b.dependency("wws", .{}); - const zig_router_dep = b.dependency("zig-router", .{}); + //const zig_router_dep = b.dependency("zig-router", .{}); const wf = b.addWriteFiles(); @@ -79,7 +79,7 @@ pub fn build(b: *std.Build) !void { .features = e.features orelse .{}, }); - worker.exe.root_module.addImport("zig-router", zig_router_dep.module("zig-router")); + //worker.exe.root_module.addImport("zig-router", zig_router_dep.module("zig-router")); try worker.addToWriteFiles(b, wf); } diff --git a/examples/zig-examples/build.zig.zon b/examples/zig-examples/build.zig.zon index ad5a949..0ed799c 100644 --- a/examples/zig-examples/build.zig.zon +++ b/examples/zig-examples/build.zig.zon @@ -41,10 +41,10 @@ .wws = .{ .path = "../../kits/zig/wws", }, - .@"zig-router" = .{ - .url = "https://github.com/Cloudef/zig-router/archive/6ff2b5b5885082a26514f1604e5cbdb763f8c445.tar.gz", - .hash = "122085db606152dbae69a63a83a61005b063199d7551d600b979140dbacc9a4778d9", - }, + //.@"zig-router" = .{ + // .url = "https://github.com/Cloudef/zig-router/archive/dc438755c5a6d5fec2efb9e413e8c03a3f637585.tar.gz", + // .hash = "1220a53ebca3e6d9958341c83767ef9763f947ef68e60362764d12a972227a1339bc", + //}, }, // Specifies the set of files and directories that are included in this package. diff --git a/examples/zig-examples/src/mount.zig b/examples/zig-examples/src/mount.zig index e86b37e..a374cec 100644 --- a/examples/zig-examples/src/mount.zig +++ b/examples/zig-examples/src/mount.zig @@ -2,7 +2,7 @@ const std = @import("std"); const wws = @import("wws"); fn handle(arena: std.mem.Allocator) !wws.Response { - const file = try std.fs.Dir.openFileWasi(std.fs.cwd(), "zig.svg", .{ + const file = try std.fs.Dir.openFile(std.fs.cwd(), "zig.svg", .{ .mode = std.fs.File.OpenMode.read_only, .lock = std.fs.File.Lock.none, });