s1vm

A fast WebAssembly (wasm) interpreter written in 100% safe Rust.

This project started with the idea to port WASM3's VM design to safe Rust.

See Ideas.md for some crazy ideas that might be used.

Goals

  1. Only use safe Rust. Crate marked #![forbid(unsafe_code)]
  2. Support pause/resume. Either by using async/await or stack unwinding/rewinding.
  3. Resource limits (CPU/Memory). Limiting or throttling CPU usage is useful for running sandboxed code.

Benchmark

Benchmark of s1vm against other wasm interpreters: - WASM3 - C - wasmi - Rust

TODOs