From d8d439e6401607fab18feb5025f3b91f135e3a50 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Fri, 26 Jan 2024 15:16:05 +0100 Subject: feat: add more examples, work on new public api Signed-off-by: Henry Gressmann --- examples/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples/README.md') diff --git a/examples/README.md b/examples/README.md index ce47073..94f974b 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,10 +1,10 @@ # Examples -## WasmRust +## Wasm-Rust These are examples using WebAssembly generated from Rust code. -To run these, you first need to build the Rust code into WebAssembly, since the wasm files are not included in the repository to keep it small. -This requires the `wasm32-unknown-unknown` target and `wasm-opt` to be installed (available via Binaryen). +To run these, you first need to build the Rust code, since the resulting wasm files are not included in the repository to keep it small. +This requires the `wasm32-unknown-unknown` target and `wasm-opt` to be installed (available via [Binaryen](https://github.com/WebAssembly/binaryen)). ```bash $ ./examples/rust/build.sh @@ -20,3 +20,4 @@ Where `` is one of the following: - `hello`: A simple example that prints a number to the console. - `tinywasm`: Runs `hello` using TinyWasm - inside of TinyWasm itself! +- `fibonacci`: Calculates the x-th Fibonacci number. -- cgit v1.3.1