From 3b200fa4d3e1f798583c7cdf8f0e81b24d02f686 Mon Sep 17 00:00:00 2001 From: Mark McCaskey Date: Thu, 19 Sep 2019 13:53:07 -0700 Subject: [PATCH] Move callback guest out of direct examples dir --- examples/callback-guest/README.md | 5 +++++ examples/{ => callback-guest}/callback-guest.rs | 0 examples/{ => callback-guest}/callback-guest.wasm | Bin examples/callback.rs | 2 +- 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 examples/callback-guest/README.md rename examples/{ => callback-guest}/callback-guest.rs (100%) rename examples/{ => callback-guest}/callback-guest.wasm (100%) 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