1
0
Fork
You've already forked zenoh-zig
0
(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
update zenoh to 1.9.0
2026年05月09日 00:05:11 -07:00
.woodpecker target musl in ci 2026年05月08日 23:01:07 -07:00
examples upgrade to zig master 2026年02月15日 17:46:54 -08:00
src upgrade to zenoh 1.7.1 and workaround z_session_drop not closing the session 2025年12月10日 21:19:58 -08:00
.gitignore upgrade to zig master 2026年02月15日 17:46:54 -08:00
build.zig add target whitelist 2026年05月08日 22:54:12 -07:00
build.zig.zon update zenoh to 1.9.0 2026年05月09日 00:05:11 -07:00
LICENSE update license to Apache-2.0 OR EPL-2.0, to align with zenoh 2025年12月08日 23:31:51 -08:00
README.md update zenoh to 1.9.0 2026年05月09日 00:05:11 -07:00

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?

  1. Fetches the pre-built published zenoh-c binaries as a dependency and links against them.

Examples

See examples.

Development

  1. Install the zig compiler. See minimum_zig_version field of build.zig.zon.
  2. 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"