- Wasi-SDK is assumed to be installed at
/opt
cargo build --target=wasm32-wasi --release
cp test/relax.jp2 target/wasm32-wasi/release
cd target/wasm32-wasi/release
wasmedge --dir=. read.wasm ./relax.jp2
Write example
cp test/relax.jp2 target/wasm32-wasi/release
cd target/wasm32-wasi/release
wasmedge --dir=. write.wasm ./relax.jp2