Skip to content

Caching

Why does Cargo rebuild everything?

Quick answer

Your cache key changes on every run, or target/ is not cached at all.

The detail that matters

Key on Cargo.lock, not on source files. Add sccache so even a cold target/ reuses compiled artefacts across branches.

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.