Zig 0.17.1 Released

64 Likes

I know that I can edit my copy of lib/std but Io.Evented is broken in vanilla.

test {
    var io_instance: std.Io.Evented = undefined;
    try io_instance.init(std.testing.allocator, .{});
    defer io_instance.deinit();
    _ = io_instance.io();
}

Does not compile on Linux:

zig-x86_64-linux-0.17.1/lib/std/Io/Uring.zig:2405:14: error: enum '@typeInfo(Io.Operation).@"union".tag_type.?' has no member named 'net_accept'
            .net_accept => |o| {
            ~^~~~~~~~~~
zig-x86_64-linux-0.17.1/lib/std/Io.zig:246:23: note: enum declared here
pub const Operation = union(enum) {
                      ^~~~~
zig-x86_64-linux-0.17.1/lib/std/Io/Uring.zig:2528:18: error: enum '@typeInfo(Io.Operation).@"union".tag_type.?' has no member named 'net_accept'
                .net_accept => @panic("TODO"),
                ~^~~~~~~~~~
zig-x86_64-linux-0.17.1/lib/std/Io.zig:246:23: note: enum declared here                               
pub const Operation = union(enum) {
                      ^~~~~
error: 2 compilation errors                                                                                                  

You should file an issue, or maybe even a PR :slight_smile:

I’m a bit surprised the net_accept PR got cherry picked into the release, as that’s a breaking change.

net_accept wasn’t backported, but https://codeberg.org/ziglang/zig/commit/608024720688c268a8b5fdb06665b7ce66293ba1 was, which is the problem.

4 Likes

Oh, thank you for the info. I misread the error.

I kind of expected it to be broken because it was announced as work-in-progress, experimental back in April.