Skip to content
Example of WebAssembly embedding in Rust using Wasmer
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Add example of writing a string to linear memory from host Mar 31, 2019
src Use wasmer 0.2.0 Feb 25, 2019
wasm-sample-app Add example of writing a string to linear memory from host Mar 31, 2019
.gitignore Update project layout Jan 21, 2019
Cargo.lock Use wasmer 0.2.0 Feb 25, 2019
Cargo.toml Use wasmer 0.2.0 Feb 25, 2019
README.md Update README.md Jan 24, 2019

README.md

Rust Embedder App Example

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

  • Rust target wasm32-unknown-unknown - install using rustup target add wasm32-unknown-unknown

Running

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

# Running the wasm sample from Rust
cargo run
You can’t perform that action at this time.