Cargo is the Rust package manager and build tool. It resolves dependencies, compiles crates, runs tests, and publishes packages to the registry.