* 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
13 lines
675 B
Markdown
13 lines
675 B
Markdown
# Embedding in C
|
|
|
|
This section is intended to showcase the C embedding API for Wasmtime. The C
|
|
embedding API is based on the [proposed wasm C embedding API][proposal] (namely
|
|
[`wasm.h`]) and has a few extension headers (like [`wasi.h`] and
|
|
[`wasmtime.h`]) which are intended to eventually become part of the standard
|
|
themselves one day.
|
|
|
|
[proposal]: https://github.com/webassembly/wasm-c-api
|
|
[`wasm.h`]: https://github.com/WebAssembly/wasm-c-api/blob/master/include/wasm.h
|
|
[`wasi.h`]: https://github.com/bytecodealliance/wasmtime/blob/master/crates/c-api/include/wasi.h
|
|
[`wasmtime.h`]: https://github.com/bytecodealliance/wasmtime/blob/master/crates/c-api/include/wasmtime.h
|