mitchellh / libxev

libxev is a cross-platform, high-performance event loop that provides abstractions for non-blocking IO, timers, events, and more and works on Linux (io_uring or epoll), macOS (kqueue), and Wasm + WASI. Available as both a Zig and C API.
MIT License
2.07k stars 74 forks source link

Fix breaking changes in most recent nightly build #89

Closed morgangallant closed 7 months ago

morgangallant commented 7 months ago

Hi there — big fan of libxev! Noticed some recent Zig changes (namely, this commit + some other recent ones), broke a bunch of stuff in here. Went through and did updates to get libxev working with the latest nightly build (0.12.0-dev.3191+9cf28d1e9), and tested the changes on both macOS and Linux.

Don't have a windows machine, so I expect more changes might be needed. Also, mlugg seems like he's on a std.os refactor spree, so we might need to do even more updates here eventually.

mitchellh commented 7 months ago

Thank you! I updated the Nix flake as well, once CI looks good I'll merge this.