452 B
452 B
WASI
You can also browse this source code online and clone the wasmtime repository to run the example locally.
This example shows off how to run a wasi binary with a memory filesystem.
Wasm Source code
{{#include ../examples/wasi-fs/wasm/wasi-fs.rs}}
wasi-fs.rs
{{#include ../examples/wasi-fs/main.rs}}