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.
 
 
 
Pat Hickey d8f3a62b32 dont try to make a virtfs today. instead, delete virtfs example. 4 years ago
..
fib-debug Update WebAssembly C API submodule to latest commit. (#2579) 4 years ago
wasi fix wasi example 4 years ago
README.md Move all examples to a top-level directory (#1286) 5 years ago
externref.c Update WebAssembly C API submodule to latest commit. (#2579) 4 years ago
externref.rs examples: Add a GC call to the externref Rust example 4 years ago
externref.wat wasmtime-c-api: Add an `externref`s example for the C API 4 years ago
gcd.c Update WebAssembly C API submodule to latest commit. (#2579) 4 years ago
gcd.rs Disconnects `Store` state fields from `Compiler` (#1761) 4 years ago
gcd.wat Move all examples to a top-level directory (#1286) 5 years ago
hello.c Update WebAssembly C API submodule to latest commit. (#2579) 4 years ago
hello.cc Update WebAssembly C API submodule to latest commit. (#2579) 4 years ago
hello.rs Disconnects `Store` state fields from `Compiler` (#1761) 4 years ago
hello.wat Move all examples to a top-level directory (#1286) 5 years ago
interrupt.c Update WebAssembly C API submodule to latest commit. (#2579) 4 years ago
interrupt.rs Disconnects `Store` state fields from `Compiler` (#1761) 4 years ago
interrupt.wat Implement interrupting wasm code, reimplement stack overflow (#1490) 5 years ago
linking.c Update WebAssembly C API submodule to latest commit. (#2579) 4 years ago
linking.rs update linking example 4 years 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 Update WebAssembly C API submodule to latest commit. (#2579) 4 years ago
memory.rs Disconnects `Store` state fields from `Compiler` (#1761) 4 years ago
memory.wat Move all examples to a top-level directory (#1286) 5 years ago
multi.c Update WebAssembly C API submodule to latest commit. (#2579) 4 years ago
multi.rs Store `WasmFuncType` in `FuncType` (#2365) 4 years ago
multi.wat Move all examples to a top-level directory (#1286) 5 years ago
serialize.c Update WebAssembly C API submodule to latest commit. (#2579) 4 years ago
serialize.rs Serialize and deserialize compilation artifacts. (#2020) 4 years ago
threads.c Update WebAssembly C API submodule to latest commit. (#2579) 4 years ago
threads.rs examples: threads.rs; fixed eun typo -> run (#2422) 4 years ago
threads.wat Disconnects `Store` state fields from `Compiler` (#1761) 4 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, and C examples need to be compiled using your system compiler and appropriate header files.

For more information see the examples themselves!