Tips for Speeding Up Cargo Build in CI
Lightningat RustConf 2026 · on Wednesday, 2026-09-09· at 17:05· Room 511 | Palais des Congrès de Montréal, Palais des Congrès de Montréal·
summary
CI for a tiny OS called Ginger OS focuses on getting system tests on micro‑VMs back faster by shaving cargo build into three parts: downloads, compilation/build scripts, and linking. Use cargo build --timings to spot slow crates, remove default features (one dependency falls 30s→15s), run clippy/build/test in one job to reuse artifacts, and cache dependencies plus compiler artifacts with sccache and carefully keyed GitHub Actions caches. Swapping linkers trims linking from 2s→1.5s.
AI-written summary · about
related talks
38mStrategies to speed up build iteration, or dynamic hot reloading
27mThe Need for Speed (in your CI/CD setup)
27mOptimizing CI/CD Pipelines for Faster Time to Market
31mImproving Your Rust Life
34mScheduling in CI/CD systems
20mDevelopment efficiency with expert CI/CD strategies
47mUsing Incredibuild to Accelerate Static Code Analysis and Builds
33mHow to Save Time with Ci and Build Time Reduction
