Skip to content

allyourcodebase/grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libgrpc packages for the Zig build system

Status: Work in progress

Refname libGRPC version Zig 0.16.x Zig 0.15.x
1.76.0 v1.76.0

Use

Add the dependency in your build.zig.zon by running the following command:

zig fetch --save git+https://github.com/allyourcodebase/grpc#master

Then, in your build.zig:

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

// to use from Zig:
mod.addImport("cgrpc", grpc.module("cgrpc"));

// to use from C:
exe.linkLibrary(grpc.artifact("grpc"));

Bump dependencies

When bumping upstream version, also bump dependencies. Example:

zig fetch --save=upstream  git+https://github.com/grpc/grpc#v1.76.0
zig fetch --save=abseil    git+https://github.com/abseil/abseil-cpp#20250512.1
zig fetch --save=re2       git+https://github.com/google/re2#2022-04-01
zig fetch --save=boringssl git+https://github.com/google/boringssl#c63fadbde60a2224c22189d14c4001bbd2a3a629
zig fetch --save=cares     git+https://github.com/c-ares/c-ares#v1.34.5
zig fetch --save=gtest     git+https://github.com/google/googletest#v1.17.0
zig fetch --save=zlib      git+https://github.com/madler/zlib#v1.3.1

About

libgrpc's core ported to the Zig build system

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published