0PricingLogin
WebAssembly (WASM) for High Performance Apps · Lesson

Building & Running WASI Modules

Compile Rust code to target WASI and execute your WebAssembly modules in various WASI runtimes.

Building WASI Modules

Welcome back! In the previous lesson, we learned what WASI is and its goals. Now, let's get practical.

This lesson focuses on the hands-on process of compiling Rust code to target WASI and then executing your WebAssembly modules in various WASI runtimes.

Rust for WASI Development

Rust is a prime language for WASI development due to its performance, safety features, and strong support for WebAssembly. To get started, you'll need:

  • Rust Toolchain: Install it via rustup if you haven't already.
  • WASI Target: Add the specific WASI compilation target.
rustup install stable
rustup target add wasm32-wasi

All lessons in this course

  1. Introduction to WASI & Its Goals
  2. Building & Running WASI Modules
  3. WASI Capabilities & Future
  4. Working with the WASI Filesystem
← Back to WebAssembly (WASM) for High Performance Apps