Rust is installed with rustup, which manages toolchains (stable, beta, nightly). Cargo is the build tool and package manager: `cargo new` scaffolds a project, `cargo build` compiles, `cargo run` builds and runs, and `cargo test` runs tests. Dependencies are declared in Cargo.toml and locked in Cargo.lock.
← Rust theorytheory 0/50 · 0%
Toolchain · easy
1. Installing Rust and Cargo
rustup, cargo and the anatomy of a crate.
Check your understanding
1. Which tool installs and switches Rust toolchains?
2. Where are dependencies declared?