Loading tutorials
rustup, rustc, and cargo. They are separate tools with separate jobs. Knowing which one is responsible for what makes error messages easier to read and tells you where to look when something breaks. This chapter7 min readPATH environment variable is, at least roughly. By the end, you will be able to confirm that each part of the toolchain is installed and reachable. You will also be able 6 min readcargo cannot be found. In the second, cargo build stops because the system has no linker.6 min readcargo new, the command that creates a Rust project. It assumes the following:6 min readrustc --version and cargo --version, and have run cargo new at least once. It covers what cargo new creates, what cargo build adds later, and which of those files you edit, commit, or ignore.7 min readcargo check, cargo build, and cargo run. It explains what each one does, where its output goes, and how to read the messages it prints. It assumes you have installed Rust with rustup, can run cargo --version in6 min readCargo.toml is the manifest of a Cargo package. It tells Cargo what the package is called, which edition of Rust it uses, and which other crates it needs. This chapter assumes you can run shell commands, have installed Rust with rustup, and have created a project with cargo new. You should also k5 min readcargo new, cargo build, and cargo run, and that you have read the Cargo.toml manifest at least once. You will add a crate from crates.io to a project, learn how Cargo records what it chose, and learn how to diagnose the errors that come up most often.6 min readcargo new. You should also know how to run cargo build and cargo run. Here you will learn what separates the two default build modes, where each puts its output, how to measure the difference, and how to 7 min readrustc --version and cargo --version. You should also be comfortable running shell commands and reading a Cargo.toml file. Here you will learn how rustup keeps your toolchain current, what the three release channels ar6 min readcargo new, cargo build, and cargo run in a terminal. It also assumes you know what Cargo.toml and src/main.rs are. You do not need prior knowledge of Rust's testing features.6 min readcargo new and cargo build. It covers the two tools most Rust projects run before every commit: rustfmt, which formats code, and Clippy, which lints it.6 min read