BorrowCheck › Rust language core
Tooling
rustup, clippy and rustfmt, Miri, Playground and Godbolt, cargo commands, rustdoc.
The topic explains the tools that surround the compiler in everyday work. The subtopic on rustup covers release channels and the release train, installation profiles, the proxies in ~/.cargo/bin, the toolchain selection order, the rust-toolchain.toml file, the RUSTUP_HOME and CARGO_HOME variables, and what rustup target add installs. The questions on clippy and rustfmt check lint groups and their priority in the [lints] table, the behavior of forbid and #[expect], why rustc itself does not evaluate clippy:: lints, what cargo clippy --fix does, what rustfmt guarantees, and how #[rustfmt::skip] works. The subtopics on Miri, the Playground and Compiler Explorer explain installing and running Miri, the cfg(miri) flag, host isolation, checking for a foreign target, and Tree Borrows, as well as the capabilities and limits of the Playground sandbox and what Godbolt shows under different optimization levels. The subtopic on cargo commands covers what cargo check skips, how build profiles affect debug_assert!, what cargo install, cargo publish --dry-run and cargo yank do, the --offline flag, and the .cargo/config.toml file. The last subtopic is about rustdoc: the structure of an item's documentation, /// and //! comments, intra-doc links, the #[doc(alias)] and #[doc(hidden)] attributes, and the missing_docs lint.
48 questions: 20 basic, 24 intermediate, 4 advanced. 6 info pages, 10 sources.
Subtopics
rustupand toolchainsclippyandrustfmt- Miri
- Playground and Godbolt
cargocommandsrustdoc
Previous: Memory and type layout