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