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.
Ivan Zvonimir Horvat
61a0bcbdc6
|
4 years ago | |
---|---|---|
.. | ||
fib-debug | 4 years ago | |
wasi | 4 years ago | |
wasi-fs | 4 years ago | |
README.md | 5 years ago | |
externref.c | 4 years ago | |
externref.rs | 4 years ago | |
externref.wat | 4 years ago | |
gcd.c | 4 years ago | |
gcd.rs | 4 years ago | |
gcd.wat | 5 years ago | |
hello.c | 4 years ago | |
hello.cc | 4 years ago | |
hello.rs | 4 years ago | |
hello.wat | 5 years ago | |
interrupt.c | 4 years ago | |
interrupt.rs | 4 years ago | |
interrupt.wat | 5 years ago | |
linking.c | 4 years ago | |
linking.rs | 4 years ago | |
linking1.wat | 5 years ago | |
linking2.wat | 5 years ago | |
memory.c | 4 years ago | |
memory.rs | 4 years ago | |
memory.wat | 5 years ago | |
multi.c | 4 years ago | |
multi.rs | 4 years ago | |
multi.wat | 5 years ago | |
serialize.c | 4 years ago | |
serialize.rs | 4 years ago | |
threads.c | 4 years ago | |
threads.rs | 4 years ago | |
threads.wat | 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!