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.
Also covered in
What to know first
- applicationAn application is a software program or system that provides functionality or performs tasks for users or other software.
- RustRust is a statically typed systems programming language designed for performance, concurrency, and memory safety without requiring garbage collection.
- WebAssemblyWebAssembly is a portable, low-level binary instruction format and execution environment for safely and efficiently running compiled code across browsers and other hosts.
Related concepts
- crateuses · A crate is a unit of Rust code compiled as a library or executable, comprising source code and its module hierarchy and distributable through package metadata.
- cargo.tomlconfigured by · Cargo.toml is a TOML-formatted manifest file that declares a Rust package’s 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 provides functionality or performs tasks for users or other software.
- dependencyaddresses · A software dependency is a component, resource, or prerequisite that another software component relies on to build, function, or proceed.
Questions about workspace
What is workspace?
A Cargo workspace is a collection of related Rust packages managed together with shared configuration, dependency resolution, and build output.
Which Manning books explain workspace?
Rust Servers, Services, and Apps and Refactoring to Rust.
What should I know before learning workspace?
Manning books that teach workspace usually introduce application, Rust and WebAssembly first.
What are the parts of workspace?
Workspace includes workspace member and application.
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.

