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.

by mitchellh

Zig

Zig98%
CSS0.9%
C++0.6%
Nix0.3%
JavaScript0.1%
TypeScript0.1%

Commit activity

Last 12 weeks · 3 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Active · Last activity 3w ago
See all on GitHub →
lcheylus

I would like to add OpenBSD support for Ghostty terminal. First step is to have a libxev library which builds and works correctly on this BSD OS. Zig 0.16 is available on OpenBSD 8.0 (latest release) and current version on amd64 arch, via package. A proposal has been submitted on openbsd-ports@ mailing-list to update OpenBSD port for Zig 0.17. With Zig 0.16, libxev doesn't build on OpenBSD current/amd64: git clone sources from GitHub switch to branch build via : NOK

lcheylus · 5d ago
endel

Closes #248. #249 made libxev build on Zig 0.17.0. This is what's left of the update: CI and nix. The workflow still installs 0.16, so every job on fails. CI and the flake now use 0.17.1, the bug-fix release; the README says 0.17, and 0.17.0, which still builds libxev. The flake takes 0.17.1 from the zig-overlay (, to 8a03a01); nothing else in the lock moved. . #249 commented it out because isn't known when build.zig runs any more. It now sets , relative to where it is installed. The nix package moves the into its output, away from the libraries, so sets the prefix back to . The "Stream decls" tests.** now sees only decls, even from the same file. These tests began with , and is private, so on 0.17 they returned before checking anything. Every type that runs them has , so the guard is gone, and is now . build.zig declares the directories it lists (, , ) with , so adding a file to one reruns it under 0.17's configure cache. The rest is 's upgrade to /, and the names in build.zig. Tested on 0.17.1: on macOS (59 passed) and on Linux aarch64 with epoll and io_uring (143 passed, 3 skipped), the examples and benchmarks, and a build for every CI target. In a container (aarch64-linux): , the dev shell's for every CI target and its tests, and . On 0.17.0, 's resolved to the output's headers and 's libraries. 🤖 Generated with Claude Code https://claude.ai/code/session_015YcSvZdqwMncezgbb64ihg

endel · 1w ago
selfisekai

Depends on a Zig upstream change planned for 0.17.1 https://codeberg.org/ziglang/zig/pulls/37275 ~~Draft: not yet working on a Zig release~~ Zig 0.17.1 tagged now

selfisekai · 1w ago
Structured data for AI agents

Repository: mitchellh/libxev. Description: 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. Stars: 3610, Forks: 218. Primary language: Zig. Languages: Zig (98%), CSS (0.9%), C++ (0.6%), Nix (0.3%), JavaScript (0.1%). License: MIT. Topics: async, c, epoll, io-uring, kqueue, wasi, webassembly, zig. Open PRs: 37, open issues: 43. Last activity: 3w ago. Community health: 42%. Top contributors: mitchellh, dependabot[bot], Corendos, charlesrocket, ianic, steeve, recursiveGecko, linuxy, kcbanner, rockorager and others.