Cargo is Rust's build tool and package manager—creates projects, resolves dependencies from crates.io, runs tests, and publishes crates.
Common commands
cargo new myapp— scaffold binary projectcargo build / run / testcargo check— fast compile without linking
Important interview questions and answers
- Q: cargo check vs build?
A: check validates compilation faster—skips producing final binary artifacts.
Self-check
- Where is the manifest file?
- What registry hosts community crates?
Tip: Run cargo check frequently during development—it is faster than full cargo build.