* Add examples of linking and WASI This commit adds two example programs, one for linking two modules together and one for instantiating WASI. The linkage example additionally uses WASI to get some meaningful output at this time. cc #1272 * Add examples to the book as well * More links! * Ignore examples from rustdoc testsing * More example updates * More ignored
23 lines
454 B
Markdown
23 lines
454 B
Markdown
# Using multi-value
|
|
|
|
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/multi.rs
|
|
|
|
This example shows off how to interact with a wasm module that uses multi-value
|
|
exports and imports.
|
|
|
|
## `multi.wat`
|
|
|
|
```wat
|
|
{{#include ../examples/multi.wat}}
|
|
```
|
|
|
|
|
|
## `multi.rs`
|
|
|
|
```rust,ignore
|
|
{{#include ../examples/multi.rs}}
|
|
```
|