hidapi built with zig build system
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-03 22:24:31 +01:00
.github/workflows Initial commit 2026-11-03 22:24:31 +01:00
build.zig Initial commit 2026-11-03 22:24:31 +01:00
build.zig.zon Initial commit 2026-11-03 22:24:31 +01:00
LICENSE Initial commit 2026-11-03 22:24:31 +01:00
README.md Initial commit 2026-11-03 22:24:31 +01:00

CI

hidapi

This is hidapi, packaged for Zig.

Installation

First, update your build.zig.zon:

zig fetch --save git+https://github.com/allyourcodebase/hidapi.git

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

const hidapi_dep = b.dependency("hidapi", .{
    .target = target,
    .optimize = optimize,
});
exe.root_module.linkLibrary(hidapi_dep.artifact("hidapi"));