wasmerio / wasmer-rust-example

Example of WebAssembly embedding in Rust using Wasmer
https://wasmerio.github.io/wasmer/rust/wasmer_runtime/
162 stars 24 forks source link

Rust Embedder App Example

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.

Requirements

Running

# Building the wasm-sample-app
cd wasm-sample-app && cargo build --release && cd ..

# Running the wasm sample from Rust
cargo run