Creating a Wasm App

Learn how to create a simple WebAssembly app using Rust and Spin, then build and run it locally.

We'll cover the following...

Write a Wasm app

We’ll use spin to create a simple web server that we’ll compile as a Wasm app. In future steps, we’ll build, ship, and run the app as a Wasm container.

Change into a new directory and then run the following command to create a new Wasm app called hello-world. Respond to the prompts as shown in the example.

$ spin new hello-world -t http-rust
Description: Wasm app
HTTP path: /hello
Creating a new WASM project

The ...