╭ changed ╮ │build.zig│ ╰─────────╯ ╭───────────────────────────────────────────────────────────────╮ │ 81 }); │ │ 82 haxy.addImport("xit", xit_dep.module("xit")); │ │ 83 │ │ 84 + // try │ │ 85 + { │ │ 86 + const exe = b.addExecutable(.{ │ │ 87 + .name = "try", │ │ 88 + .root_module = b.createModule(.{ │ │ 89 + .root_source_file = b.path("src/try.zig"),│ │ 90 + .target = target, │ │ 91 + .optimize = optimize, │ │ 92 + }), │ │ 93 + }); │ │ 94 + exe.root_module.addImport("haxy", haxy); │ │ 95 + b.installArtifact(exe); │ │ 96 + │ │ 97 + const run_cmd = b.addRunArtifact(exe); │ │ 98 + run_cmd.step.dependOn(b.getInstallStep()); │ │ 99 + if (b.args) |args| { │ │100 + run_cmd.addArgs(args); │ │101 + } │ │102 + │ │103 + const run_step = b.step("try", "Try the app"); │ │104 + run_step.dependOn(&run_cmd.step); │ │105 + } │ │106 + │ │107 // test │ │108 { │ │109 const unit_tests = b.addTest(.{ │ ╰───────────────────────────────────────────────────────────────╯ ╭ changed ──╮ │src/lib.zig│ ╰───────────╯ ╭────────────────────────────────────────────╮ │1 pub const xit = @import("xit"); │ │2 pub const main = @import("./main.zig"); │ │3 pub const event = @import("./event.zig");│ │4 +pub const serve = @import("./serve.zig");│ │5 │ ╰────────────────────────────────────────────╯ ╭ added ────╮ │src/try.zig│ ╰───────────╯