Loading tutorials
cargo new, run commands in a terminal, and read basic Rust. It covers the manifest syntax that declares a dependency and the errors you are most likely to hit when you write it by hand. The cargo add command, version rules and features each get 2 min readcargo new, and know that dependencies live in the [dependencies] table of Cargo.toml. You will use cargo add and cargo remove to change that table from the command line instead of editing it by hand.2 min readcargo new, you know basic Rust syntax and modules, and you have already added serde and serde_json to a project with cargo add. Here you will see how a dependency's name becomes a path in your code, and how to fix the errors that appear when3 min readcargo new, read a Cargo.toml file, and run commands in a terminal. It explains what the version string next to a dependency means and how Cargo uses it to choose a version.3 min readcargo build and read a [dependencies] table. It also assumes you know what a SemVer requirement such as "1" means. Here you will see how Cargo turns those loose requirements into one fixed set of versions, and how to keep that set stable.3 min readCargo.toml, run cargo add, and read SemVer requirements such as "1" and "~1.2.3". It covers how to turn a crate's optional parts on and off.3 min readCargo.toml, run cargo add, and understand version requirements and crate features from earlier chapters. Not every crate your project needs belongs in the final program. Cargo lets you declare which dependencies are needed for which job.2 min readcargo new, edit Cargo.toml, and have read the chapters on SemVer requirements and Cargo.lock. Here you will learn what cargo update changes, what it leaves alone, and how to review an update before you commit it.3 min readcargo add, read version requirements in Cargo.toml, and know that Cargo.lock pins exact versions. Here you will use cargo tree to see what Cargo actually resolved.3 min readcargo add, read a version requirement, and run cargo tree. Here you will learn how to judge a crate before it enters your project. Every dependency is code you ship, build and maintain. A short check up front is cheaper than replacing a crate la3 min readCargo.toml, run cargo add, and understand SemVer requirements from earlier chapters. Most dependencies come from crates.io, but Cargo can also read a crate from a local folder or a git repository. It can also give a dependency a different name inside your code2 min readcargo new, read a Cargo.toml file, and understand version requirements such as "1" and "=1.2.3". It also assumes you know what Cargo.lock records.3 min read