hidapi ported to the Zig build system
| src | first release 0.1.0 | |
| .gitignore | updated build.zig to work with Zig 0.16.0 | |
| build.zig | linking against libudev. maybe this will break on non Debian based distros... | |
| build.zig.zon | fixed linker bug for ubuntu | |
| LICENSE | Initial commit | |
| README.md | first release 0.1.0 | |
hidapi
hidapi ported to the Zig build system
Getting Started
First add the package to your dependencies:
# Replace <VERSION TAG> with the version you want to use
zig fetch --save https://codeberg.org/r4gus/hidapi/archive/<VERSION TAG>.tar.gz
# e.g., zig fetch --save https://codeberg.org/r4gus/hidapi/archive/0.1.0.tar.gz
Then access the hidapi dependency within your build.zig:
#accessthehidapidependencyconsthidapi_dep=b.dependency("hidapi",.{.target=target,.optimize=optimize,});#thenlinkitwiththemodulethatuseshidapimy_mod.linkLibrary(hidapi_dep.artifact("hidapi"));Now you can @import("hidapi") within your code to use the library.
LICENSE
This repository is licensed under MIT. The hidapi code build using this library is licensed under one of three licenses:
- GPL3
- BSD-Style License
- HIDAPI license