From 03020080366241f1c5b610546d3e17687232eb30 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Wed, 13 Mar 2024 15:28:31 +0100 Subject: chore: optimize block stack, remove EndFunc (#12) Signed-off-by: Henry Gressmann --- examples/rust/rust-toolchain.toml | 3 +++ examples/wasm-rust.rs | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 examples/rust/rust-toolchain.toml (limited to 'examples') diff --git a/examples/rust/rust-toolchain.toml b/examples/rust/rust-toolchain.toml new file mode 100644 index 0000000..21a0cab --- /dev/null +++ b/examples/rust/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel="nightly" +targets=["wasm32-unknown-unknown"] diff --git a/examples/wasm-rust.rs b/examples/wasm-rust.rs index cff38f5..9b057f1 100644 --- a/examples/wasm-rust.rs +++ b/examples/wasm-rust.rs @@ -36,6 +36,17 @@ fn main() -> Result<()> { "printi32" => printi32()?, "fibonacci" => fibonacci()?, "tinywasm" => tinywasm()?, + "all" => { + println!("Running all examples"); + println!("\nhello.wasm:"); + hello()?; + println!("\nprinti32.wasm:"); + printi32()?; + println!("\nfibonacci.wasm:"); + fibonacci()?; + println!("\ntinywasm.wasm:"); + tinywasm()?; + } _ => {} } -- cgit v1.3.1