rylev / wasmtime-component-demo

A demo of how to work with WebAssembly components in wasmtime
11 stars 1 forks source link

WebAssembly Components Demo

Prerequisites

You will need the following tooling installed:

Running

First, build the wasm module:

cargo build --target wasm32-unknown-unknown --release -p markdown

The convert it into a component:

wasm-tools component new ./target/wasm32-unknown-unknown/release/markdown.wasm -o markdown-component.wasm

Then run the demo:

cargo run markdown-component.wasm

Thanks

Thank you to everyone who is working on WebAssembly tooling.

Additionally, this is based on the following work: