summaryrefslogtreecommitdiff
path: root/examples/wasm-rust.rs
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-03-13 15:28:31 +0100
committerGitHub <noreply@github.com>2024-03-13 15:28:31 +0100
commit03020080366241f1c5b610546d3e17687232eb30 (patch)
tree67ed5722bb37f55ffa135ce241f722f78cb56831 /examples/wasm-rust.rs
parent398b2af4ea37be98093bdf7ac185a468c62c4aef (diff)
chore: optimize block stack, remove EndFunc (#12)
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'examples/wasm-rust.rs')
-rw-r--r--examples/wasm-rust.rs11
1 files changed, 11 insertions, 0 deletions
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()?;
+ }
_ => {}
}