* Remove explicit `S` type parameters This commit removes the explicit `S` type parameter on `Func::typed` and `Instance::get_typed_func`. Historical versions of Rust required that this be a type parameter but recent rustcs support a mixture of explicit type parameters and `impl Trait`. This removes, at callsites, a superfluous `, _` argument which otherwise never needs specification. * Fix mdbook examples
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. C examples can
be built with mkdir build && cd build && cmake ... You can run
cmake --build . to build all examples or
cmake --build . --target wasmtime-$name, replacing the name as you wish. They
can also be built manually.
For more information see the examples themselves!