WebAssembly module
A WebAssembly module is a compiled, self-contained unit of WebAssembly code and associated definitions that a compatible host can instantiate and execute.
Refactoring to Rust
A WebAssembly module is a compiled WebAssembly program containing code and associated definitions that can be instantiated by a host.
- How it is used
- Packages application logic as a shippable binary that a runtime executes or a Rust host calls through an interface.
- How deep it goes
- Works through building, running, and hosting a module, while describing its sandbox and input boundary rather than detailing the Wasm binary format.
- Examples
- Uses an API-search library, a wasm32-wasi executable run with WasmEdge, and a Rust host that registers and calls a module.
- What you can do after
- Build it from scratch as a Rust Wasm binary, run it with WasmEdge, and call its functions from a Rust host.
Server-Side WebAssembly
A Wasm module is a compiled WebAssembly unit containing code and associated definitions that a runtime can instantiate and execute.
- How it is used
- Builds deployable server-side application units that Wasm runtimes execute directly or through container tooling.
- How deep it goes
- Explains compilation, linear-memory data exchange, component wrapping, and container deployment, while deferring richer module data management to components.
- Examples
- Uses a Rust Hello, World guest, a scratch-based Wasm container, and a converted Flask container binary.
- What you can do after
- Builds from scratch Rust Wasm modules, inspects or wraps them with wasm-tools, and packages them as container entrypoints.
Read how Server-Side WebAssembly explains WebAssembly module →
Related concepts
- Rustproduced by · Rust is a statically typed systems programming language designed for performance, concurrency, and memory safety without requiring garbage collection.
- Wasm componentproduces · A Wasm component is a composable WebAssembly artifact that packages interfaces and implementations so code from different languages can be linked together.
- container2wasmproduced by · container2wasm is a tool that converts Linux container workloads into WebAssembly binaries by compiling CPU emulators into WebAssembly.
- user-defined functionused by · A user-defined function is a programmer-authored function that performs custom computation when invoked by an application, query, or data-processing system.
- SpinKubeused by · SpinKube is an integration that runs and orchestrates Spin applications on Kubernetes.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

