From c68aa7bdbfb18d939ec338cc313e3040b1dc5ce8 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Fri, 30 Apr 2021 16:48:14 +0300 Subject: [PATCH] Update Cookbook.md --- docs/Cookbook.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/Cookbook.md b/docs/Cookbook.md index 0eb9ec3..2d1a582 100644 --- a/docs/Cookbook.md +++ b/docs/Cookbook.md @@ -1,6 +1,4 @@ -# Wasm3 Cookbook - -## WASM module examples +# WASM module examples ### Rust WASI app @@ -210,9 +208,7 @@ wasm3> :invoke swap 123 456 Result: 456:i32, 123:i32 ``` -___ - -## WASM/WASI tracing +# Tracing Drag'n'drop any of the WASI apps to [`WebAssembly.sh`](https://webassembly.sh/) and run: ```sh @@ -373,7 +369,8 @@ Hello, world! ``` -## Gas Metering +# Gas Metering + ```sh $ npm install -g wasm-metering @@ -390,7 +387,7 @@ Gas used: 10.0309 Error: [trap] Out of gas ``` -## Other resources +# Other resources - [WebAssembly by examples](https://wasmbyexample.dev/home.en-us.html) by Aaron Turner - [Writing WebAssembly](https://docs.wasmtime.dev/wasm.html) in Wasmtime docs