diff --git a/examples/callback-guest/README.md b/examples/callback-guest/README.md new file mode 100644 index 00000000000..6439ef00dd4 --- /dev/null +++ b/examples/callback-guest/README.md @@ -0,0 +1,5 @@ +# Call back guest + +This is part of the `callback` example. This Wasm module passes host imports and its own functions to the Wasm host to execute. + +See `examples/callback.rs` for the host diff --git a/examples/callback-guest.rs b/examples/callback-guest/callback-guest.rs similarity index 100% rename from examples/callback-guest.rs rename to examples/callback-guest/callback-guest.rs diff --git a/examples/callback-guest.wasm b/examples/callback-guest/callback-guest.wasm similarity index 100% rename from examples/callback-guest.wasm rename to examples/callback-guest/callback-guest.wasm diff --git a/examples/callback.rs b/examples/callback.rs index 732a6a1a43f..e5969fec971 100644 --- a/examples/callback.rs +++ b/examples/callback.rs @@ -3,7 +3,7 @@ use wasmer_runtime::{compile_with, compiler_for_backend, func, imports, Backend, Ctx}; use wasmer_runtime_core::{structures::TypedIndex, types::TableIndex}; -static WASM: &'static str = "examples/callback-guest.wasm"; +static WASM: &'static str = "examples/callback-guest/callback-guest.wasm"; /// This function matches our arbitrarily decided callback signature /// in this example we'll only call functions that take no arguments and return one value