diff --git a/README.md b/README.md index 1785583..0ada051 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ If you want to see how to use it you can check repositories list into the [CICD ## Dependencies -The [Zig][2] part of this package is relying on the latest [Zig][2] release (0.12.0) and will only be updated for the next one (so for the 0.13.0). +The [Zig][2] part of this package is relying on the latest [Zig][2] release (0.13.0) and will only be updated for the next one (so for the 0.14.0). ## CICD reminder diff --git a/build.zig.zon b/build.zig.zon index 82a7314..b534ec8 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,7 +1,7 @@ .{ .name = "toolbox", .version = "1.5.0", - .minimum_zig_version = "0.12.0", + .minimum_zig_version = "0.13.0", .dependencies = .{}, .paths = .{ "build.zig", diff --git a/build/command.zig b/build/command.zig index 950595a..2f5339a 100644 --- a/build/command.zig +++ b/build/command.zig @@ -38,7 +38,7 @@ pub fn run (builder: *std.Build, proc: struct { argv: [] const [] const u8, std.debug.print ("\x1b[35m[{s}]\x1b[0m\n", .{ try std.mem.join (builder.allocator, " ", proc.argv), }); - var child = std.ChildProcess.init (proc.argv, builder.allocator); + var child = std.process.Child.init (proc.argv, builder.allocator); child.stdin_behavior = .Ignore; child.stdout_behavior = .Pipe; @@ -48,7 +48,7 @@ pub fn run (builder: *std.Build, proc: struct { argv: [] const [] const u8, try child.spawn (); - var term: std.ChildProcess.Term = undefined; + var term: std.process.Child.Term = undefined; if (proc.wait) |wait| { wait (); @@ -57,7 +57,7 @@ pub fn run (builder: *std.Build, proc: struct { argv: [] const [] const u8, try child.collectOutput (&stdout, &stderr, std.math.maxInt (usize)); term = try child.wait (); } - const exit_success = std.ChildProcess.Term { .Exited = 0, }; + const exit_success = std.process.Child.Term { .Exited = 0, }; if (!proc.ignore_errors and stderr.items.len > 0 and !std.meta.eql (term, exit_success)) std.debug.print ("\x1b[31m{s}\x1b[0m", .{ stderr.items, });