From abe4ed0446151d69f2acbdcc62ba8ddc4cbb2e0f Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 21 Oct 2022 22:47:26 +0200 Subject: [PATCH] add scripts --- scripts/build-wasm.sh | 3 +++ scripts/install-wasm.sh | 3 +++ scripts/run-wasm.sh | 3 +++ 3 files changed, 9 insertions(+) create mode 100755 scripts/build-wasm.sh create mode 100755 scripts/install-wasm.sh create mode 100755 scripts/run-wasm.sh diff --git a/scripts/build-wasm.sh b/scripts/build-wasm.sh new file mode 100755 index 0000000..cbb171b --- /dev/null +++ b/scripts/build-wasm.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +cargo build --target wasm32-wasi diff --git a/scripts/install-wasm.sh b/scripts/install-wasm.sh new file mode 100755 index 0000000..a5858bb --- /dev/null +++ b/scripts/install-wasm.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +brew install wasm32-wasi diff --git a/scripts/run-wasm.sh b/scripts/run-wasm.sh new file mode 100755 index 0000000..53ffe4c --- /dev/null +++ b/scripts/run-wasm.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +wasmtime target/wasm32-wasi/debug/wasm-bin.wasm