Files
wasmtime/docs/examples-c-wasi.md
Alex Crichton 44e897ddad Add Go as an embedding to the book (#1481)
* Add Go as an embedding to the book

Also take this time to list out all embeddings in the README of wasmtime
itself.
2020-04-08 11:03:30 -05:00

22 lines
431 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/master/examples/wasi/main.c
This example shows off how to instantiate a wasm module using WASI imports.
## Wasm Source code
```rust,ignore
{{#include ../examples/wasi/wasm/wasi.rs}}
```
## `wasi.c`
```c
{{#include ../examples/wasi/main.c}}
```