Line 115: Replace
@enumToInt(event_id) with
@intFromEnum(event_id)
Line 120: Replace
switch (@intToEnum(eventId, id)) { with
var e: eventId = @enumFromInt(id);
switch (e) {
Line 157: Replace
return @ptrToInt(buf.ptr); with
return @intFromPtr(buf.ptr);
The above changes will build with Zig 0.11. Though, I had trouble running in localhost python simple webserver.
Line 115: Replace
@enumToInt(event_id)with@intFromEnum(event_id)Line 120: Replace
switch (@intToEnum(eventId, id)) {withLine 157: Replace
return @ptrToInt(buf.ptr);withreturn @intFromPtr(buf.ptr);The above changes will build with Zig 0.11. Though, I had trouble running in localhost python simple webserver.