From 36d54098d0bf7607d046c5d0ce2ee45fb6759208 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Fri, 26 Jan 2024 13:59:39 -0700 Subject: [PATCH] docs: update installation step --- README.md | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 7834deb..b34a335 100644 --- a/README.md +++ b/README.md @@ -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/.tar.gz", - // .hash = "" (zig build will tell you what to put here) - }, - }, -} + ``` +zig fetch --save https://github.com/extism/zig-sdk/archive/.tar.gz +``` + And in your `build.zig`: ```zig const extism_module = b.dependency("extism", .{ .target = target, .optimize = optimize }).module("extism");