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
rustupif you haven't already. - WASI Target: Add the specific WASI compilation target.
rustup install stable
rustup target add wasm32-wasiAll lessons in this course
- Introduction to WASI & Its Goals
- Building & Running WASI Modules
- WASI Capabilities & Future
- Working with the WASI Filesystem