You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Bruce Mitchener e2664e55a9
Reduce typo count (#9106)
3 months ago
..
component style: simplify string formatting (#9047) 3 months ago
fib-debug Recommend `-O opt-level=0` when debugging wasm (#8755) 5 months ago
min-platform Update object to 0.36 (#8733) 5 months ago
tokio Rename the `wasm32-wasi` target to `wasm32-wasip1` (#8867) 3 months ago
wasi Rename the `wasm32-wasi` target to `wasm32-wasip1` (#8867) 3 months ago
wasi-async Rename the `wasm32-wasi` target to `wasm32-wasip1` (#8867) 3 months ago
CMakeLists.txt Rename the `wasm32-wasi` target to `wasm32-wasip1` (#8867) 3 months ago
README.md Add cmake compatibility to c-api (#4369) 2 years ago
anyref.c c-api: Remove allocations from `wasmtime_val_t` (#8451) 7 months ago
anyref.rs Enforce `uninlined_format_args` for the workspace (#9065) 3 months ago
anyref.wat wasmtime-c-api: Add support for GC references in `wasmtime.h` APIs (#8346) 7 months ago
async.cpp Reduce typo count (#9106) 3 months ago
async.wat Async support in the C API (#7106) 1 year ago
coredump.rs Update some CI dependencies (#7983) 9 months ago
epochs.rs Remove explicit `S` type parameters (#5275) 2 years ago
externref.c c-api: Remove allocations from `wasmtime_val_t` (#8451) 7 months ago
externref.rs Enforce `uninlined_format_args` for the workspace (#9065) 3 months ago
externref.wat wasmtime-c-api: Add an `externref`s example for the C API 4 years ago
fuel.c Remove wasm-c-api submodule (#8170) 8 months ago
fuel.rs style: simplify string formatting (#9047) 3 months ago
fuel.wat Bump wasm-tools crates (#7094) 1 year ago
gcd.c Remove wasm-c-api submodule (#8170) 8 months ago
gcd.rs Update some CI dependencies (#7983) 9 months ago
gcd.wat Move all examples to a top-level directory (#1286) 5 years ago
hello.c Remove wasm-c-api submodule (#8170) 8 months ago
hello.rs Update some CI dependencies (#7983) 9 months ago
hello.wat Move all examples to a top-level directory (#1286) 5 years ago
interrupt.c Remove wasm-c-api submodule (#8170) 8 months ago
interrupt.rs Update some CI dependencies (#7983) 9 months ago
interrupt.wat Implement interrupting wasm code, reimplement stack overflow (#1490) 5 years ago
linking.c Remove wasm-c-api submodule (#8170) 8 months ago
linking.rs Update some CI dependencies (#7983) 9 months ago
linking1.wat Add examples of linking and WASI (#1369) 5 years ago
linking2.wat Add examples of linking and WASI (#1369) 5 years ago
memory.c Remove wasm-c-api submodule (#8170) 8 months ago
memory.rs Update some CI dependencies (#7983) 9 months ago
memory.wat Move all examples to a top-level directory (#1286) 5 years ago
mpk-available.rs mpk: enable MPK if available in CI (#7815) 9 months ago
mpk.rs Use bytes for maximum size of linear memory with pooling (#8628) 6 months ago
multi.c Remove wasm-c-api submodule (#8170) 8 months ago
multi.rs style: simplify string formatting (#9047) 3 months ago
multi.wat Move all examples to a top-level directory (#1286) 5 years ago
multimemory.c Remove wasm-c-api submodule (#8170) 8 months ago
multimemory.rs Update some CI dependencies (#7983) 9 months ago
multimemory.wat Update the wasm-tools family of crates (#4165) 3 years ago
serialize.c Remove wasm-c-api submodule (#8170) 8 months ago
serialize.rs Update some CI dependencies (#7983) 9 months ago
threads.c Remove wasm-c-api submodule (#8170) 8 months ago
threads.rs Update some CI dependencies (#7983) 9 months ago
threads.wat Implement RFC 11: Redesigning Wasmtime's APIs (#2897) 3 years ago

README.md

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!