Workspace
A Cargo workspace is a collection of related Rust packages managed together with shared configuration, dependency resolution, and build output.
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.
Related concepts
- crateuses · A crate is Rust’s unit of compilation and distribution, containing source code and metadata for a library or executable.
- cargo.tomlconfigured by · Cargo.toml is a TOML-formatted Rust package manifest declaring project metadata, dependencies, targets, and build configuration.
- lock fileuses · A lock file records resolved dependency versions and related metadata so a package manager can reproduce a project's dependency installation.
- applicationhas part · An application is a software program or system that performs tasks or provides functionality for users or other software systems.
- dependencyaddresses · A software dependency is a component, resource, or prerequisite on which another software component or operation relies to function or proceed.
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.

