diff --git a/README.md b/README.md index ad73a3c..731fa61 100644 --- a/README.md +++ b/README.md @@ -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")); ``` diff --git a/build.zig.zon b/build.zig.zon index 9c8f197..c649d73 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -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" + } } \ No newline at end of file