Skip to content

wasi

Compare
Choose a tag to compare
@alexcrichton alexcrichton released this 12 Mar 23:40
  1. First, download the appropriate tarball below
  2. Extract it, it'll make a directory called wasi
  3. Execute rustup toolchain link wasi $PWD/wasi
  4. Execute rustc +wasi -vV and make sure it works
  5. Clone https://github.com/cranestation/wasmception-wasi
  6. Run make inside there
  • This'll take quite awhile as it builds clang
  1. Create hello.rs which is the standard rust hello world
  2. rustc +wasi hello.rs --target wasm32-unknown-wasi -C linker=/path/to/wasmception-wasi/dist/bin/clang
  3. Clone https://github.com/cranestation/wasmtime-wasi
  4. cargo run --bin wasmtime /path/to/hello.wasm