protobuf and protoc ported to the zig build system
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-01 21:10:45 +02:00
.github/workflows update CI 2026-07-01 13:32:24 +02:00
.gitignore update abseil and add basic test 2026-07-01 13:17:15 +02:00
build.zig correct README example, disambiguate artifact names 2026-07-01 21:10:45 +02:00
build.zig.zon switch to new upstream 2026-07-01 15:11:02 +02:00
LICENSE initial commit 2025-12-06 16:11:52 +01:00
LICENSE.upstream initial commit 2025-12-06 16:11:52 +01:00
README.md correct README example, disambiguate artifact names 2026-07-01 21:10:45 +02:00

protobuf

protobuf but packaged for Zig.

How to add to your project

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

You can then access the available libraries and executables like this:

const protobuf_dep = b.dependency("protobuf", .{
    .target = target,
    .optimize = optimize,
});

// libµpb
const libupb = protobuf_dep.artifact("libupb");

// libprotobuf
const libprotobuf = protobuf_dep.artifact("libprotobuf");

// libprotoc
const libprotoc = protobuf_dep.artifact("libprotoc");

// protoc
const protoc = protobuf_dep.artifact("protoc");