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.
 
 
 
Dan Gohman 6fa9be7767
Wasmtime 0.13.0 and Cranelift 0.61.0. (#1398)
5 years ago
..
fib-debug Wasmtime 0.13.0 and Cranelift 0.61.0. (#1398) 5 years ago
wasi Wasmtime 0.13.0 and Cranelift 0.61.0. (#1398) 5 years ago
README.md Move all examples to a top-level directory (#1286) 5 years ago
gcd.c Fix calls to wasmtime_wat2wasm to remove engine argument. 5 years ago
gcd.rs Move all examples to a top-level directory (#1286) 5 years ago
gcd.wat Move all examples to a top-level directory (#1286) 5 years ago
hello.c Fix calls to wasmtime_wat2wasm to remove engine argument. 5 years ago
hello.rs Add a first-class way of accessing caller's exports (#1290) 5 years ago
hello.wat Move all examples to a top-level directory (#1286) 5 years ago
linking.c Add Wasmtime C API function to control linker shadowing. 5 years ago
linking.rs Add a `wasmtime::Linker` type (#1384) 5 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 Fix calls to wasmtime_wat2wasm to remove engine argument. 5 years ago
memory.rs Move all examples to a top-level directory (#1286) 5 years ago
memory.wat Move all examples to a top-level directory (#1286) 5 years ago
multi.c Fix calls to wasmtime_wat2wasm to remove engine argument. 5 years ago
multi.rs Refactor the internals of `Func` to remove layers of indirection (#1363) 5 years ago
multi.wat Move all examples to a top-level directory (#1286) 5 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!