Files
wasmtime/docs/examples-rust-wasi-fs.md
2020-09-29 13:20:14 -05:00

22 lines
452 B
Markdown

# WASI
You can also [browse this source code online][code] and clone the wasmtime
repository to run the example locally.
[code]: https://github.com/bytecodealliance/wasmtime/blob/main/examples/wasi/main.rs
This example shows off how to run a wasi binary with a memory filesystem.
## Wasm Source code
```rust,ignore
{{#include ../examples/wasi-fs/wasm/wasi-fs.rs}}
```
## `wasi-fs.rs`
```rust,ignore
{{#include ../examples/wasi-fs/main.rs}}
```