Link to C API docs and make a landing page

Spice up the landing page a bit for the C API documentation and then
link to it from a few places to ensure it's discoverable.
This commit is contained in:
Alex Crichton
2020-07-02 08:49:27 -07:00
parent 47a218f908
commit 920e0984d3
4 changed files with 95 additions and 15 deletions

View File

@@ -1,12 +1,6 @@
# 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.
This section is intended to showcase the C embedding API for Wasmtime. Full
reference documentation for the C API [can be found online][online]
[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/main/crates/c-api/include/wasi.h
[`wasmtime.h`]: https://github.com/bytecodealliance/wasmtime/blob/main/crates/c-api/include/wasmtime.h
[online]: https://bytecodealliance.github.io/wasmtime/c-api/