(NOT OFFICIAL) Zig bindings for the Zenoh C bindings for the Zenoh rust library :)
- Zig 96.1%
- Shell 3.9%
|
kj4tmp@gmail.com
f961bf0943
Some checks failed
ci/woodpecker/push/ci Pipeline failed
|
||
|---|---|---|
| .woodpecker | target musl in ci | |
| examples | upgrade to zig master | |
| src | upgrade to zenoh 1.7.1 and workaround z_session_drop not closing the session | |
| .gitignore | upgrade to zig master | |
| build.zig | add target whitelist | |
| build.zig.zon | update zenoh to 1.9.0 | |
| LICENSE | update license to Apache-2.0 OR EPL-2.0, to align with zenoh | |
| README.md | update zenoh to 1.9.0 | |
zenoh-zig
Warning
This project has no affiliation with the official Zenoh project.
This project provides zig bindings for zenoh-c.
Zenoh Version
See contents of build.zig.zon;
Zig Version
See contents of build.zig.zon.
| Zig Version | Last Compatible Commit |
|---|---|
| 0.16.0 | HEAD of branch main |
| 0.15.2 | 9fa795b6bb |
How does it work?
- Fetches the pre-built published zenoh-c binaries as a dependency and links against them.
Examples
See examples.
Development
- Install the zig compiler. See
minimum_zig_versionfield ofbuild.zig.zon. zig build
You can run windows tests with zig build -fwine -Dtarget=x86_64-windows-gnu
To update zenoh version, string replace the version number in these links and run in the repo.
zig fetch --save=zenoh_c_aarch64_linux_musl "https://github.com/eclipse-zenoh/zenoh-c/releases/download/1.9.0/zenoh-c-1.9.0-aarch64-unknown-linux-musl-standalone.zip"
zig fetch --save=zenoh_c_x86_64_linux_musl "https://github.com/eclipse-zenoh/zenoh-c/releases/download/1.9.0/zenoh-c-1.9.0-x86_64-unknown-linux-musl-standalone.zip"
zig fetch --save=zenoh_c_aarch64_linux_gnu "https://github.com/eclipse-zenoh/zenoh-c/releases/download/1.9.0/zenoh-c-1.9.0-aarch64-unknown-linux-gnu-standalone.zip"
zig fetch --save=zenoh_c_x86_64_linux_gnu "https://github.com/eclipse-zenoh/zenoh-c/releases/download/1.9.0/zenoh-c-1.9.0-x86_64-unknown-linux-gnu-standalone.zip"
zig fetch --save=zenoh_c_x86_64_windows_gnu "https://github.com/eclipse-zenoh/zenoh-c/releases/download/1.9.0/zenoh-c-1.9.0-x86_64-pc-windows-gnu-standalone.zip"
zig fetch --save=zenoh_c_x86_64_windows_msvc "https://github.com/eclipse-zenoh/zenoh-c/releases/download/1.9.0/zenoh-c-1.9.0-x86_64-pc-windows-msvc-standalone.zip"
zig fetch --save=zenoh_c_aarch64_macos_none "https://github.com/eclipse-zenoh/zenoh-c/releases/download/1.9.0/zenoh-c-1.9.0-aarch64-apple-darwin-standalone.zip"
zig fetch --save=zenoh_c_x86_64_macos_none "https://github.com/eclipse-zenoh/zenoh-c/releases/download/1.9.0/zenoh-c-1.9.0-x86_64-apple-darwin-standalone.zip"