NOTE: Please see the Wasmer Rust Integration documentation for an up-to-date example of user the Wasmer Rust Integration / Embedding.
This repo showcases how to use the wasmer-runtime from Rust, based on the blogpost: https://medium.com/wasmer/executing-webassembly-in-your-rust-application-d5cd32e8ce46
See src/main.rs
for the example implementation.
The wasm-sample-app
directory contains an example rust wasm app to run in the embedder app.
- Rust target
wasm32-unknown-unknown
- install usingrustup target add wasm32-unknown-unknown
# Building the wasm-sample-app
cd wasm-sample-app && cargo build --release && cd ..
# Running the wasm sample from Rust
cargo run