Skip to content

Commit

Permalink
docs: update installation step
Browse files Browse the repository at this point in the history
  • Loading branch information
nilslice authored Jan 26, 2024
1 parent 8b8ffd7 commit 36d5409
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,11 @@ sudo extism lib install latest
```

# within your Zig project directory:
This package works with the Zig package manager introduced in Zig 0.11. Create a `build.zig.zon` file like this:
```zig
.{
.name = "my-project",
.version = "0.1.0",
.paths = .{""},
.dependencies = .{
.extism = .{
.url = "https://github.com/extism/zig-sdk/archive/<git-ref-here>.tar.gz",
// .hash = "" (zig build will tell you what to put here)
},
},
}

```
zig fetch --save https://github.com/extism/zig-sdk/archive/<git-ref-here>.tar.gz
```

And in your `build.zig`:
```zig
const extism_module = b.dependency("extism", .{ .target = target, .optimize = optimize }).module("extism");
Expand Down

0 comments on commit 36d5409

Please sign in to comment.