Skip to content

Commit

Permalink
Document package manager usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sam701 committed Dec 3, 2023
1 parent fcc3ba8 commit 9f09818
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ fn run_server() !void {
}
```

### How to use with the package manager
See the `standalone` example in the `examples` folder.
* [`build.zig.zon`](./examples/standalone/build.zig.zon)
* [`build.zig`](./examples/standalone/build.zig)

## Printing help
See [`simple.zig`](./example/simple.zig)

Expand Down
1 change: 1 addition & 0 deletions examples/standalone/build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.paths = .{"./src"},
.dependencies = .{
.@"zig-cli" = .{
// URL pattern: https://github.com/sam701/zig-cli/archive/<commit hash>.tar.gz
.url = "https://github.com/sam701/zig-cli/archive/e32f7454d690761ec2b4eab8600e0610d0d233bd.tar.gz",
.hash = "1220bf895404724653daf8e0e054e6c943b8dc13c312c3d32d9e0eaa4448f261fd98",
},
Expand Down

0 comments on commit 9f09818

Please sign in to comment.