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
1.97k stars 65 forks source link

Embedding libxev with freestanding targets #74

Open RossComputerGuy opened 10 months ago

RossComputerGuy commented 10 months ago

I was wondering if it would be possible to add freestanding support (so libxev could be used in MCU's and kernels). A possible way would be to check the root module with @hasDecl() and then load in the backend. I have a use for this which is a cross platform UI toolkit which can run in UEFI.