Files
Alex Crichton 8f03b22e07 Remove wasm-c-api submodule (#8170)
* Remove wasm-c-api submodule

This submodule hasn't been updated in ~3 years at this point and we
additionally don't need most of the submodule. Instead add a script to
copy the files we need and verify in CI that the files are up-to-date.

This also makes using the C API a bit nicer where you don't have to have
two `include` directories with a Wasmtime source tree, just one
suffices.

* Don't format wasm.h{,h} vendored files
2024-03-18 18:58:11 +00:00
..
2024-03-18 18:58:11 +00:00
2024-03-18 18:58:11 +00:00
2023-10-03 13:42:56 +00:00
2024-03-18 18:58:11 +00:00
2024-02-22 23:54:03 +00:00
2023-09-27 14:36:00 +00:00
2024-03-18 18:58:11 +00:00
2024-02-22 23:54:03 +00:00
2024-03-18 18:58:11 +00:00
2024-02-22 23:54:03 +00:00
2024-03-18 18:58:11 +00:00
2024-02-22 23:54:03 +00:00
2024-03-18 18:58:11 +00:00
2024-02-22 23:54:03 +00:00
2024-02-22 23:54:03 +00:00
2024-03-18 18:58:11 +00:00
2024-03-18 18:58:11 +00:00
2024-02-22 23:54:03 +00:00

Examples of the wasmtime API

This directory contains a number of examples of using the wasmtime API from different languages. Currently examples are all in Rust and C using the wasmtime crate or the wasmtime embedding API.

Each example is available in both C and in Rust. Examples are accompanied with a *.wat file which is the wasm input, or a Rust project in a wasm folder which is the source code for the original wasm file.

Rust examples can be executed with cargo run --example $name. C examples can be built with mkdir build && cd build && cmake ... You can run cmake --build . to build all examples or cmake --build . --target wasmtime-$name, replacing the name as you wish. They can also be built manually.

For more information see the examples themselves!