zig-wasm-dom
zig-wasm-dom copied to clipboard
Zig 0.11
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.