diff --git a/.gitignore b/.gitignore index 79e797b..49a46c2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ bin/ zig-cache/ zig-out/ +.zig-cache/ inject.sh diff --git a/build.zig b/build.zig index 24a2be7..e3f376b 100644 --- a/build.zig +++ b/build.zig @@ -6,20 +6,20 @@ pub fn build(b: *std.Build) void { const lib = b.addStaticLibrary(.{ .name = "zig-amqp", - .root_source_file = .{ .path = "src/amqp.zig" }, + .root_source_file = b.path("src/amqp.zig"), .target = target, .optimize = optimize, }); b.installArtifact(lib); _ = b.addModule("amqp", .{ - .root_source_file = .{ .path = "src/amqp.zig" }, + .root_source_file = b.path("src/amqp.zig"), .target = target, .optimize = optimize, }); const main_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/amqp.zig" }, + .root_source_file = b.path("src/amqp.zig"), .target = target, .optimize = optimize, }); diff --git a/examples/simple_consume/build.zig b/examples/simple_consume/build.zig index e1e4dd7..6ec0052 100644 --- a/examples/simple_consume/build.zig +++ b/examples/simple_consume/build.zig @@ -9,7 +9,7 @@ pub fn build(b: *std.Build) void { const exe = b.addExecutable(.{ .name = "simple_consume", - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); diff --git a/examples/simple_consume_two_channels/build.zig b/examples/simple_consume_two_channels/build.zig index e1e4dd7..6ec0052 100644 --- a/examples/simple_consume_two_channels/build.zig +++ b/examples/simple_consume_two_channels/build.zig @@ -9,7 +9,7 @@ pub fn build(b: *std.Build) void { const exe = b.addExecutable(.{ .name = "simple_consume", - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); diff --git a/examples/simple_publish/build.zig b/examples/simple_publish/build.zig index e1e4dd7..6ec0052 100644 --- a/examples/simple_publish/build.zig +++ b/examples/simple_publish/build.zig @@ -9,7 +9,7 @@ pub fn build(b: *std.Build) void { const exe = b.addExecutable(.{ .name = "simple_consume", - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); diff --git a/examples/simple_publish_single/build.zig b/examples/simple_publish_single/build.zig index e1e4dd7..6ec0052 100644 --- a/examples/simple_publish_single/build.zig +++ b/examples/simple_publish_single/build.zig @@ -9,7 +9,7 @@ pub fn build(b: *std.Build) void { const exe = b.addExecutable(.{ .name = "simple_consume", - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, });