安装wasm runtime

curl https://wasmtime.dev/install.sh -sSf | bash

查看wasmtime的安装路径

安装target

rustup target add wasm32-wasi

创建测试工程

cargo new wasm_wasi_demo

编译工程

cargo build –target wasm32-wasi

运行

wasmtime ./target/wasm32-wasi/debug/wasm_wasi_demo.wasm