Add examples of linking and WASI (#1369)

* 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
This commit is contained in:
Alex Crichton
2020-03-20 18:10:53 -05:00
committed by GitHub
parent 07bd973027
commit e245e6dd9c
29 changed files with 867 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
# Embedding in Rust
This section is intended to showcase the Rust embedding API for Wasmtime. This
is done through the [`wasmtime` crate](https://crates.io/crates/wasmtime). In
addition to browsing the following examples you can also browse the [specific
section on Rust embedding](./embed-rust.md) or the [full API
documentation](https://docs.rs/wasmtime).