libuv/readme.md
torque 3769759890
Some checks are pending
CI / build (-Dbuild-tests -Dbuild-benchmarks, true, ubuntu-latest, master) (push) Waiting to run
CI / build (macos-latest, 0.13.0) (push) Waiting to run
CI / build (ubuntu-latest, 0.13.0) (push) Waiting to run
CI / build (windows-latest, 0.13.0) (push) Waiting to run
init
2025-02-04 00:04:54 -07:00

1.0 KiB

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. 1.50.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

Refname libuv Version Zig 0.13 Zig 0.14.0-dev
1.50.0