Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,17 @@ try stream.push("Final message", true);

## 🔧 Installation

1. Add to your `build.zig.zon`:
1. Fetch the dependency:

```zig
.dependencies = .{
.grpc_zig = .{
.url = "https://github.com/ziglana/grpc-zig/archive/refs/tags/v0.1.0.tar.gz",
},
},
```sh
zig fetch --save "git+https://ziglana/grpc-zig/gRPC-zig#main"
```

2. Add to your `build.zig`:

```zig
const grpc_zig = b.dependency("grpc_zig", .{});

exe.addModule("grpc", grpc_zig.module("grpc"));
```

Expand Down
8 changes: 7 additions & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
.{
.name = "grpc-zig",
.name = .grpc_zig,
.version = "0.1.0",
.dependencies = .{
.spice = .{
.url = "https://github.com/judofyr/spice/archive/refs/heads/main.tar.gz",
.hash = "spice-0.0.0-3FtxfM67AADgcc5i5rJfewMfbutQY7DMTyNlZblzW-6p"
},
},
.paths = .{
"build.zig",
"build.zig.zon",
"src"
}
}
Loading