From e6d339b6ac343326c86d1d193cee6e2db96fa0bc Mon Sep 17 00:00:00 2001 From: jiang1997 Date: Mon, 8 Aug 2022 23:37:16 +0800 Subject: [PATCH] supplement necessary instructions to run example-wasi (#4633) --- examples/wasi/main.c | 1 + examples/wasi/main.rs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/wasi/main.c b/examples/wasi/main.c index a52a0afc6830..2a2ab07324c2 100644 --- a/examples/wasi/main.c +++ b/examples/wasi/main.c @@ -3,6 +3,7 @@ Example of instantiating a WebAssembly which uses WASI imports. You can compile and run this example on Linux with: + cmake example/ cargo build --release -p wasmtime-c-api cc examples/wasi/main.c \ -I crates/c-api/include \ diff --git a/examples/wasi/main.rs b/examples/wasi/main.rs index f555e9087064..9e34630b4b3a 100644 --- a/examples/wasi/main.rs +++ b/examples/wasi/main.rs @@ -1,7 +1,11 @@ //! Example of instantiating of instantiating a wasm module which uses WASI //! imports. -// You can execute this example with `cargo run --example wasi` +/* +You can execute this example with: + cmake example/ + cargo run --example wasi +*/ use anyhow::Result; use wasmtime::*;