566 B
566 B
LibreSSL
This is the protobuf-c runtime, packaged for Zig.
Installation
First, update your build.zig.zon
:
# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save <PLACEHOLDER>
You can then import protobuf_c
in your build.zig
with:
const protobuf_c_dependency = b.dependency("protobuf_c", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(protobuf_c_dependency.artifact("protobuf_c"));