File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -62,20 +62,17 @@ try stream.push("Final message", true);
6262
6363## 🔧 Installation
6464
65- 1 . Add to your ` build.zig.zon ` :
65+ 1 . Fetch the dependency :
6666
67- ``` zig
68- .dependencies = .{
69- .grpc_zig = .{
70- .url = "https://github.com/ziglana/grpc-zig/archive/refs/tags/v0.1.0.tar.gz",
71- },
72- },
67+ ``` sh
68+ zig fetch --save " git+https://ziglana/grpc-zig/gRPC-zig#main"
7369```
7470
75712 . Add to your ` build.zig ` :
7672
7773``` zig
7874const grpc_zig = b.dependency("grpc_zig", .{});
75+
7976exe.addModule("grpc", grpc_zig.module("grpc"));
8077```
8178
Original file line number Diff line number Diff line change 11.{
2- .name = "grpc-zig" ,
2+ .name = .grpc_zig ,
33 .version = "0.1.0" ,
44 .dependencies = .{
55 .spice = .{
66 .url = "https://github.com/judofyr/spice/archive/refs/heads/main.tar.gz" ,
7+ .hash = "spice-0.0.0-3FtxfM67AADgcc5i5rJfewMfbutQY7DMTyNlZblzW-6p"
78 },
89 },
10+ .paths = .{
11+ "build.zig" ,
12+ "build.zig.zon" ,
13+ "src"
14+ }
915}
You can’t perform that action at this time.
0 commit comments