Name Date Size #Lines LOC

..15-May-2026-

component/H15-May-2026-10167

fib-debug/H15-May-2026-216149

min-platform/H15-May-2026-2,3141,596

resource-component/H15-May-2026-202151

tokio/H15-May-2026-13192

wasip1/H15-May-2026-224132

wasip1-async/H15-May-2026-4420

wasip2/H15-May-2026-8653

wasip2-async/H15-May-2026-5835

wasip2-plugins/H15-May-2026-284217

wasm/H15-May-2026-2117

CMakeLists.txtH A D15-May-20264.2 KiB122106

README.mdH A D15-May-2026917 1914

anyref.cH A D15-May-20266.8 KiB214147

anyref.ccH A D15-May-20263 KiB10679

anyref.rsH A D15-May-20262.1 KiB6247

anyref.watH A D15-May-2026262 1511

async.ccH A D15-May-20269.8 KiB290220

async.watH A D15-May-2026507 1918

coredump.rsH A D15-May-20262.8 KiB9676

epochs.rsH A D15-May-20261.8 KiB4926

externref.cH A D15-May-20266.5 KiB197133

externref.ccH A D15-May-20261.8 KiB6049

externref.rsH A D15-May-20262.5 KiB7864

externref.watH A D15-May-2026211 107

fast_compilation.rsH A D15-May-2026819 3010

fast_execution.rsH A D15-May-20261.8 KiB5833

fast_instantiation.rsH A D15-May-20263.6 KiB9351

fuel.cH A D15-May-20264.2 KiB136103

fuel.ccH A D15-May-20261.7 KiB6436

fuel.rsH A D15-May-20261.2 KiB3426

fuel.watH A D15-May-2026344 1413

gcd.cH A D15-May-20263.2 KiB11081

gcd.ccH A D15-May-2026856 3121

gcd.rsH A D15-May-2026750 229

gcd.watH A D15-May-2026508 2927

hello.cH A D15-May-20264.7 KiB14096

hello.ccH A D15-May-20261.9 KiB5630

hello.rsH A D15-May-20262.4 KiB6433

hello.watH A D15-May-202684 54

interrupt.cH A D15-May-20263.9 KiB13298

interrupt.ccH A D15-May-20261.9 KiB6735

interrupt.rsH A D15-May-20261.2 KiB3519

interrupt.watH A D15-May-202659 76

linking.cH A D15-May-20265.2 KiB148111

linking.ccH A D15-May-20261.8 KiB6041

linking.rsH A D15-May-20261.4 KiB3517

linking1.watH A D15-May-2026634 2419

linking2.watH A D15-May-2026816 3428

memory.cH A D15-May-20268.9 KiB276222

memory.ccH A D15-May-20262.5 KiB8061

memory.rsH A D15-May-20262.9 KiB7449

memory.watH A D15-May-2026315 1411

mpk-available.rsH A D15-May-2026446 1711

mpk.rsH A D15-May-20268.5 KiB262168

multi.cH A D15-May-20265.1 KiB175128

multi.ccH A D15-May-20262.2 KiB7952

multi.rsH A D15-May-20261.9 KiB6435

multi.watH A D15-May-2026499 2420

multimemory.cH A D15-May-202611.3 KiB332274

multimemory.ccH A D15-May-20261.5 KiB6238

multimemory.rsH A D15-May-20264.9 KiB12187

multimemory.watH A D15-May-2026664 2926

pre_compile.rsH A D15-May-20261.6 KiB5231

run_pre_compiled.rsH A D15-May-20261.8 KiB4218

serialize.cH A D15-May-20265.6 KiB175122

serialize.ccH A D15-May-20261.8 KiB7849

serialize.rsH A D15-May-20262.6 KiB6934

threads.cH A D15-May-20265.3 KiB211150

threads.ccH A D15-May-20262.8 KiB10580

threads.rsH A D15-May-20262.2 KiB7045

threads.watH A D15-May-202694 54

README.md

1# Examples of the `wasmtime` API
2
3This directory contains a number of examples of using the `wasmtime` API from
4different languages.
5
6Most examples are available in Rust, C, and C++, using the `wasmtime` crate or the
7[C/C++ embedding API](https://docs.wasmtime.dev/c-api/). Examples are accompanied by a
8`*.wat` file which is the wasm input, or a Rust project in a `wasm` folder which
9is the source code for the original wasm file.
10
11Rust examples can be executed with `cargo run --example $name`. C and C++ examples can
12be built with `mkdir build && cd build && cmake $name`, where for C `$name` is the
13basename of the example, and for C++ it is `[basename]-cpp`. You can run
14`cmake --build .` to build all examples or `cmake --build . --target wasmtime-$name`,
15replacing the name as you wish.
16They can also be [built manually](https://docs.wasmtime.dev/c-api/).
17
18For more information see the examples themselves!
19