liveBook · Manning

WebAssembly module

Also called Wasm 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
Uses modules to separate and incrementally refactor business logic behind a host interface.
How deep it goes
Explains sandboxing and interfaces, then walks through compilation, runtime execution, and host invocation.
Examples
Builds an API search module and invokes its search function from a Rust command-line host.
What you can do after
Apply it via WasmEdge and its SDK to run a compiled module and call it 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 →

What to know first

Related concepts

Questions about WebAssembly module

What is 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.

Which Manning books explain WebAssembly module?

Refactoring to Rust and Server-Side WebAssembly.

What should I know before learning WebAssembly module?

Manning books that teach WebAssembly module usually introduce WebAssembly first.

What are the parts of WebAssembly module?

WebAssembly module includes linear memory.

What is WebAssembly module also called?

WebAssembly module is also called Wasm module.

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.