liveBook · Manning

Workspace

A Cargo workspace is a collection of related Rust packages managed together with shared configuration, dependency resolution, and build output.

How 2 Manning books explain it

Rust Servers, Services, and Apps

A Cargo workspace is a set of related Rust packages managed and built together by Cargo.

How it is used
Organizes related Rust binaries and libraries so Cargo can manage them together during iterative application development.
How deep it goes
Defines workspace roots and members, demonstrates manifest configuration and package commands, but does not develop advanced workspace architecture.
Examples
Uses scenario1 with TCP and HTTP packages and ezytutors with a tutor-nodb web-service package.
What you can do after
Operate/configure Cargo workspaces, declare members, create packages, and run a selected binary from the workspace root.

Read how Rust Servers, Services, and Apps explains workspace →

Refactoring to Rust

A Cargo workspace is a collection of related Rust packages that share a lockfile and build output directory.

How it is used
Organizes a Wasm project by separating reusable business logic from an independently shippable binary.
How deep it goes
Demonstrates creation, membership configuration, path dependencies, target configuration, building, and execution.
Examples
Uses paper_search and paper_search_lib to fetch, parse, format, build, and run search results as Wasm.
What you can do after
Builds and runs a workspace containing a Wasm binary that calls reusable library code.

Read how Refactoring to Rust explains workspace →

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.