diff --git a/build.zig b/build.zig index 76bef5a..d809588 100644 --- a/build.zig +++ b/build.zig @@ -7,13 +7,11 @@ pub fn build(b: *std.Build) void { const statspatch_dep = b.dependency("statspatch", .{ .target = target, .optimize = optimize }); _ = b.addModule("zenolith", .{ - .source_file = .{ .path = "src/main.zig" }, - .dependencies = &.{ - .{ - .name = "statspatch", - .module = statspatch_dep.module("statspatch"), - }, - }, + .root_source_file = .{ .path = "src/main.zig" }, + .imports = &.{.{ + .name = "statspatch", + .module = statspatch_dep.module("statspatch"), + }}, }); const main_tests = b.addTest(.{ @@ -22,7 +20,7 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }); - main_tests.addModule("statspatch", statspatch_dep.module("statspatch")); + main_tests.root_module.addImport("statspatch", statspatch_dep.module("statspatch")); const run_main_tests = b.addRunArtifact(main_tests); diff --git a/build.zig.zon b/build.zig.zon index 6e81783..77c232a 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -9,8 +9,8 @@ .dependencies = .{ .statspatch = .{ - .url = "git+https://git.mzte.de/LordMZTE/statspatch.git#231e3ce529efa9a084fb095ff570dfd985ca9a7d", - .hash = "1220685f1c039a53076ef169ef2e2959aeb054c86d4eda5aac736885daa0bf2f6910", + .url = "git+https://git.mzte.de/LordMZTE/statspatch.git#9f6c8648e9901646b440b525201b77dbabc04bba", + .hash = "122093d8dbfbd8f5e28734da73d9e5be1d6b2d41cf234e07daf2dfd7abf7ba65d976", }, }, }