Skip to content

Commit

Permalink
supplement necessary instructions to run example-wasi (bytecodeallian…
Browse files Browse the repository at this point in the history
  • Loading branch information
jiang1997 authored Aug 8, 2022
1 parent c5e3c0c commit e6d339b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/wasi/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
6 changes: 5 additions & 1 deletion examples/wasi/main.rs
Original file line number Diff line number Diff line change
@@ -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::*;
Expand Down

0 comments on commit e6d339b

Please sign in to comment.