No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-05 00:36:40 -06:00
.github/workflows ci: do more work in the BSD VM prepare script 2026-10-05 00:19:52 -06:00
.gitignore init 2025-02-04 21:05:45 -07:00
build.zig build: work around LLD not being able to link the tests executable 2026-10-04 23:47:24 -06:00
build.zig.zon update to libuv 1.53.0 2026-09-28 10:40:17 +02:00
LICENSE init 2025-02-04 21:05:45 -07:00
LICENSE-LIBUV init 2025-02-04 21:05:45 -07:00
readme.md readme: update version support matrix 2026-10-05 00:36:40 -06:00

libuv

This is libuv, packaged for Zig.

Status

In theory, the full intersection of platforms supported by libuv and platforms supported by Zig are supported build targets, but the less common targets are not tested.

Usage

First, update your build.zig.zon:

# Initialize a zig project if you haven't already
zig init
# replace <refname> with the version you want to use, e.g. v1.53.0
zig fetch --save git+https://github.com/allyourcodebase/libuv.git#<refname>

You can then import libuv in your build.zig with:

const libuv_dep = b.dependency("libuv", .{
    .target = target,
    .optimize = optimize,
});
your_exe.linkLibrary(libuv_dep.artifact("uv"));

Dependencies

libuv only depends on core operating system libraries (and libc).

Zig Version Support Matrix

Important

Compatible zig versions labeled -dev are maintained on a best-effort basis and are likely to break as the compiler and zig build system develop. Tag-based refs are immutable and will not be updated when the zig build system has a backward incompatible change.

Refname libuv Version Compatible Zig Version(s)
master 1.53.0 0.14.1, 0.15.2, 0.16.0, 0.17.0, 0.18-dev
v1.53.0 1.53.0 0.14.1, 0.15.2, 0.16.0, 0.17.0, 0.18-dev
v1.52.1 1.52.1 0.14.1, 0.15.2, 0.16.0, 0.17-dev
v1.51.0 1.51.0 0.14.1, 0.15.2, 0.16-dev
v1.50.0 1.50.0 0.14.1, 0.15.2