From 441b50d94b9ce9cee4262701265af9c14f87d7a3 Mon Sep 17 00:00:00 2001 From: Cameron Reed Date: Sat, 2 Nov 2024 09:29:25 -0600 Subject: [PATCH] Use json.zig instead of root.zig for lib --- build.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index 16c90f0..29f55f8 100644 --- a/build.zig +++ b/build.zig @@ -16,7 +16,7 @@ pub fn build(b: *std.Build) !void { const optimize = b.standardOptimizeOption(.{}); const zigjson_module = b.createModule(.{ - .root_source_file = b.path("src/root.zig"), + .root_source_file = b.path("src/json.zig"), }); try b.modules.put(b.dupe("zigjson"), zigjson_module); @@ -25,7 +25,7 @@ pub fn build(b: *std.Build) !void { .name = "zigjson", // In this case the main source file is merely a path, however, in more // complicated build scripts, this could be a generated file. - .root_source_file = b.path("src/root.zig"), + .root_source_file = b.path("src/json.zig"), .target = target, .optimize = optimize, }); @@ -73,7 +73,7 @@ pub fn build(b: *std.Build) !void { // Creates a step for unit testing. This only builds the test executable // but does not run it. const lib_unit_tests = b.addTest(.{ - .root_source_file = b.path("src/root.zig"), + .root_source_file = b.path("src/json.zig"), .target = target, .optimize = optimize, });