Skip to content

mootoday/wasm-on-server-runtime-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm-on-server-runtime-rust

This repository is part of the "Execute untrusted customer code on the server with Web Assembly (Wasm) components" blog post.

It contains a web server that exposes a POST endpoint at http://127.0.0.1:8080/run. The request payload is a WebAssembly component binary which will be executed in a Rust WebAssembly engine.

The Wasm Interface Type (WIT) used by this engine can be found at ./wit/world.wit.

To look at examples of how to create a WebAssembly component for this engine:

For guides to write Wasm components in other languages, please refer to the official docs.

Getting started

  1. Install Devbox
    curl -fsSL https://get.jetify.com/devbox | bash
    
  2. Run the web server
    devbox run dev
    
  3. Build and deploy either a Rust or Javascript Wasm component.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages