From b835fbc473f7d8c1af0857c062af76b878c04adc Mon Sep 17 00:00:00 2001 From: Alexei Samokvalov Date: Sun, 3 Dec 2023 21:50:41 +0100 Subject: [PATCH] Document package manager usage --- README.md | 3 +++ examples/standalone/build.zig.zon | 1 + 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 4e9d325..368f8a2 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,9 @@ fn run_server() !void { } ``` +### Using with the package manager +See the [`standalone`](./examples/standalone) example in the `examples` folder. + ## Printing help See [`simple.zig`](./example/simple.zig) diff --git a/examples/standalone/build.zig.zon b/examples/standalone/build.zig.zon index 7518790..d617ddb 100644 --- a/examples/standalone/build.zig.zon +++ b/examples/standalone/build.zig.zon @@ -4,6 +4,7 @@ .paths = .{"./src"}, .dependencies = .{ .@"zig-cli" = .{ + // URL pattern: https://github.com/sam701/zig-cli/archive/.tar.gz .url = "https://github.com/sam701/zig-cli/archive/e32f7454d690761ec2b4eab8600e0610d0d233bd.tar.gz", .hash = "1220bf895404724653daf8e0e054e6c943b8dc13c312c3d32d9e0eaa4448f261fd98", },