What's Changed
- Add Zig 0.15.X support by @burdzwastaken in #6
- Require program name for WASI config init
try wasmer.WasiConfig.init("example_program");by @Afirium in #7
Using it
In your zig project folder (where build.zig is located), run:
zig fetch --save "git+https://github.com/zig-wasm/wasmer-zig-api#v0.4.0"Then, in your build.zig's build function, add the following before
b.installArtifact(exe):
const wasmer_zig_api = b.dependency("wasmer_zig_api", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("wasmer", wasmer_zig_api.module("wasmer"));
exe.root_module.link_libc = true;
exe.root_module.addLibraryPath(.{ .cwd_relative = "/home/path_to_your_wasmer/.wasmer/lib" });
exe.root_module.linkSystemLibrary("wasmer", .{});New Contributors
- @burdzwastaken made their first contribution in #6
Full Changelog: v0.3.0...v0.4.0