Loading tutorials
Cargo.toml, know the difference between library and binary crates, and have run cargo build and cargo run. Here you will see how one manifest turns a directory of crates into a workspace.2 min readCargo.toml, know the difference between library and binary crates, and have used cargo build and cargo run. Here you will learn the two ways a workspace root can be written and how to choose between them.2 min readCargo.toml and that you know what a virtual manifest is: a root Cargo.toml with a [workspace] table and no [package] table. Here you decide which directories become workspace members, and which members Cargo acts on when you give it no packa2 min readCargo.toml, know the difference between library and binary crates, and have run cargo build. It covers the two artifacts every workspace shares: the lock file and the build output directory.3 min readCargo.toml and know the difference between library and binary crates. It also assumes you have the root manifest from the earlier chapters, with members = ["crates/*"].2 min read[workspace.package] table and the workspace = true syntax. It assumes you can read a single-package Cargo.toml, know the difference between library and binary crates, and have a root manifest with a [workspace] table.2 min readCargo.toml, know how library and binary crates differ, and have already created a workspace with a virtual root manifest and path dependencies between members. Here you will move dependency declarations into one place so every member uses the same2 min readCargo.toml, know the difference between library and binary crates, and have already set up the workspace from earlier chapters: a virtual root manifest with crates/textkit (a library) and crates/app (a binary that depends on it).2 min readCargo.toml, you know what a lint is (a compiler or Clippy check that warns about or rejects certain code), and you have the workspace from earlier chapters: a virtual root manifest with textkit and app under crates/.3 min readCargo.toml, know how to declare dependencies with features, and have a workspace with a virtual manifest and several members. It explains how Cargo decides which features of a dependency to turn on when many members share one build.3 min readCargo.toml, know the dev and release build modes, and have a workspace with a virtual manifest like the one from earlier chapters. It covers which settings Cargo reads only from the workspace root, and what happens when you put them in a membe2 min read[workspace.package] and [workspace.dependencies] inheritance works. It uses the textkit library and app binary from earlier chapters.2 min readCargo.toml, know the difference between library and binary crates, and have seen the workspace root, members and -p flags from earlier chapters. Here we put those pieces together into a layout you can hand to a team and a set of commands a CI se3 min read