Cargo & Dependencies
Cargo is Rust’s package manager, build orchestrator, dependency resolver, and publishing client; this map groups the atomic notes for manifests, dependency resolution, features, workspaces, release hygiene, and supply-chain practice.
Concepts
- Cargo.toml Manifest
- Dependencies and Version Requirements
- Semantic Versioning
- Feature Flags
- Feature Resolver
- Cargo Workspaces
- Build Scripts (build.rs)
- Publishing to crates.io
- Cargo.lock
- Cargo Configuration Hierarchy
- Cargo Source Overrides
- Profiles and Optimization Settings
- MSRV Policy
Patterns
- cargo-audit and cargo-deny
- Minimizing Dependencies
- Workspace Dependency Inheritance
- cargo publish, yank and owners
Antipatterns
See also
Ownership · Error Handling · The Error Trait · Concurrency · Unsafe Rust · Testing · Documentation Tests
Sources
- The Cargo Book — cargo-book, https://doc.rust-lang.org/cargo/
- The Cargo Book, “The Manifest Format” — cargo-book, https://doc.rust-lang.org/cargo/reference/manifest.html
- The Cargo Book, “Specifying Dependencies” — cargo-book, https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html
