Skip to content

Commit 1214534

Browse files
authored
Merge pull request #12 from btd1337/main
Fix #11
2 parents 71ba099 + 856c673 commit 1214534

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff 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

7571
2. Add to your `build.zig`:
7672

7773
```zig
7874
const grpc_zig = b.dependency("grpc_zig", .{});
75+
7976
exe.addModule("grpc", grpc_zig.module("grpc"));
8077
```
8178

build.zig.zon

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
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
}

0 commit comments

Comments
 (0)