* Add Go as an embedding to the book Also take this time to list out all embeddings in the README of wasmtime itself.
22 lines
431 B
Markdown
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}}
|
|
```
|