Skip to content

sethvincent/zig-build-libuv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-build-libuv

Builds libuv with Zig!

Work in progress

This package hasn't had much use yet but should be generally usable. Usage examples are on the way. Currently you can look at src/timer.zig for some examples of loop and timer usage.

About

This continues the work from the archived mitchellh/zig-libuv repository.

This repo can be used as a dependency to easily add libuv to your project.

Usage

To add libuv to your project:

Add the dependency to the build.zig.zon using zig fetch:

zig fetch --save=zig_build_libuv "git ref url"

A gif ref url can be a commit, tag, release, etc.

Define the dependency in build.zig:

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

Add libuv to the appropriate module(s):

lib_mod.addImport("libuv", libuv_dep.module("libuv"));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages