diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b4957c --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +# This file is for zig-specific build artifacts. +# If you have OS-specific or editor-specific files to ignore, +# such as *.swp or .DS_Store, put those in your global +# ~/.gitignore and put this in your ~/.gitconfig: +# +# [core] +# excludesfile = ~/.gitignore +# +# Cheers! +# -andrewrk + +zig-cache/ +zig-out/ +/release/ +/debug/ +/build/ +/build-*/ +/docgen_tmp/ \ No newline at end of file diff --git a/examples/basic.zig b/examples/basic.zig index 218d07e..67cf87a 100644 --- a/examples/basic.zig +++ b/examples/basic.zig @@ -23,7 +23,7 @@ pub fn main() !void { const allocator = gpa.allocator(); _ = sdk.setLogFile("extism.log", .Debug); - const wasmfile_manifest = manifest.WasmFile{ .path = "../wasm/code-functions.wasm" }; + const wasmfile_manifest = manifest.WasmFile{ .path = "wasm/code-functions.wasm" }; const man = .{ .wasm = &[_]manifest.Wasm{.{ .wasm_file = wasmfile_manifest }} }; var f = Function.init( "hello_world", diff --git a/wasm/code-functions.wasm b/wasm/code-functions.wasm new file mode 100755 index 0000000..8b293db Binary files /dev/null and b/wasm/code-functions.wasm differ