Toolchain: node/npm/tsc, the go command, cargo, compilers + CMake
#rustup installs and updates the toolchain, and cargo is the build tool and package manager you use day to day. Cargo resolves dependencies from crates.io (Cargo.toml and Cargo.lock), calls the rustc compiler, runs tests and benchmarks, and runs rustfmt (cargo fmt) and Clippy (cargo clippy). You rarely call rustc directly.
Fragment
Terminal commands, run from the project folder.
Most used: cargo new, cargo add, cargo run, cargo build --release, cargo test, cargo fmt, cargo clippy, rustup update.
A build.rs file at the package root is a build script: Cargo compiles and runs it before the package, for generating code, compiling bundled C sources (the cc crate) or telling Cargo what to link via cargo::rustc-link-lib lines.