Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Building a simple component

This section contains guides on how to build a simple WebAssembly component that implements an adder, with the following WIT interface:

package docs:adder@0.1.0;

interface add {
    add: func(x: u32, y: u32) -> u32;
}

world adder {
    export add;
}

Languages

This guide is implemented for various languages: