liveBook · Manning

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.

How 2 Manning books explain it

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.

Read how Refactoring to Rust explains WebAssembly module →

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

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.