What's Changed
- build: add docs step by @Afirium in #1
- Add hash to readme and remove personal info from addLibraryPath by @acgollapalli in #2
- Add support for zig 0.14.0 by @Afirium in #3
Using it
In your zig project folder (where build.zig is located), run:
zig fetch --save "git+https://github.com/Afirium/wasmer-zig-api#v0.2.0"
Then, in your build.zig
's build
function, add the following before
b.installArtifact(exe)
:
const wasmerZigAPI= b.dependency("wasmer_zig_api", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("wasmer", wasmerZigAPI.module("wasmer"));
exe.linkLibC();
exe.addLibraryPath(.{ .cwd_relative = "/home/path_to_your_wasmer/.wasmer/lib" });
exe.linkSystemLibrary("wasmer");
New Contributors
- @acgollapalli made their first contribution in #2
Full Changelog: v0.1.0...v0.2.0