1# WASI
2
3You can also browse this source code online and clone the wasmtime
4repository to run the example locally:
5
6* [Rust](https://github.com/bytecodealliance/wasmtime/blob/main/examples/wasip1/main.rs)
7* [C](https://github.com/bytecodealliance/wasmtime/blob/main/examples/wasip1/main.c)
8* [C++](https://github.com/bytecodealliance/wasmtime/blob/main/examples/wasip1/main.cc)
9
10This example shows off how to instantiate a wasm module using WASI imports.
11
12## Wasm Source
13
14```rust,ignore
15{{#include ../examples/wasm/wasi.rs}}
16```
17
18## Host Source
19
20<!-- langtabs-start -->
21
22```rust
23{{#include ../examples/wasip1/main.rs}}
24```
25
26```c
27{{#include ../examples/wasip1/main.c}}
28```
29
30```cpp
31{{#include ../examples/wasip1/main.cc}}
32```
33
34<!-- langtabs-end -->
35