This repository is part of the "Execute untrusted customer code on the server with Web Assembly (Wasm) components" blog post.
This is a Rust guest implementation for the Wasm Interface Type (WIT) defined in ./wit/world.wit.
To look at the Rust runtime that executes the Wasm component from this repository, see github.com/mootoday/wasm-on-server-runtime-rust.
To look at a Javascript example of how to create WebAssembly components for this WIT:
For guides to write Wasm components in other languages, please refer to the official docs.
- Install Devbox
curl -fsSL https://get.jetify.com/devbox | bash - Run the web server
- Build and deploy the Wasm component in this repository.
devbox run build && devbox run deploy