Files
wasmtime/examples
Yury Delendik 399ee0a54c Serialize and deserialize compilation artifacts. (#2020)
* Serialize and deserialize Module
* Use bincode to serialize
* Add wasm_module_serialize; docs
* Simple tests
2020-07-21 15:05:50 -05:00
..
2020-07-15 14:07:36 -05:00
2020-07-15 14:07:36 -05:00
2020-07-15 14:07:36 -05:00
2020-07-15 14:07:36 -05:00
2020-07-15 14:07:36 -05:00
2020-07-15 14:07:36 -05:00
2020-07-15 14:07:36 -05:00

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!