Loading tutorials
Cargo.toml, and use a terminal. It also assumes you know the rough shape of a Rust build from the earlier chapters: rustc parses and type-checks the code, LLVM generates machine code, and a linker produces the final5 min read[profile.dev] that change how much work rustc, LLVM and the linker do on every debug build. It assumes you can read a Cargo.toml, you know the difference between cargo build and cargo build --release, and you have already measured a build with `cargo build6 min readCargo.toml. It also assumes you have met the dev and release profiles from the previous chapter. Here you will learn how incremental compilation works, why a small edit can still trigger a large rebuild, and how to tell when it i7 min readCargo.toml, run cargo build and cargo tree, and know that crates can expose optional features. It covers how dependencies add to build time and how to remove what you don't need.6 min readCargo.toml, know what #[derive(...)] does, and have run cargo build --timings as described in the me7 min readCargo.toml, and read a cargo build --timings report. You should also know the rough split between rustc, LLVM, and the linker from the first chapter.6 min readCargo.toml, and run cargo build --timings from the earlier chapters. It covers when splitting a crate speeds up builds, how to do it, and the mistakes that cancel the benefit.6 min readcargo build --timings from the earlier chapters. Here you will learn why generic code costs compile time, how to find the worst offenders, and which refactors reduce the cost without hurting the design of your 5 min readcargo test. It also assumes you know what a workspace is and have read the chapters on linking and workspaces. Here you will learn why the layout of your tests affects build time, how to merge integration tests into one bin6 min readCargo.toml and .cargo/config.toml, and that you know what cargo build --timings shows. It also assumes you know that incremental compilat6 min readCargo.toml, know the difference between cargo build and cargo build --release, and have read the earlier chapters on the compile pipeline and measuring builds. Here you will tune the settings that decide how hard LLVM works on your code. These settings trade6 min readCargo.toml and .cargo/config.toml, and that you know the rustc, LLVM and linker phases and the `cargo 5 min read