Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 658 Bytes

File metadata and controls

28 lines (19 loc) · 658 Bytes

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");