Skip to content

Documentation ​

mbx adds a shared compiler cache and automatic storage management to Cargo. Start with a local build, then add the integrations your workflow needs.

Start here ​

Get started takes you from installation to your first cached build. For platform-specific downloads, see Installation. For automatic Cargo wrapping and rust-analyzer, see Cargo and editor setup.

Work locally ​

TaskGuide
Use editors, watch loops, or a debuggerLocal development
Understand what is stored or deletedManaged target directories
Run tests and Clippy at the same timeParallel builds
Tune repeated source editsIncremental builds
Select a linker by profile and targetManaged linkers
Watch compiler and cache activityWatching builds
Cache make or CMake compiler callsStandalone C and C++

Set up CI and sharing ​

TaskGuide
Add caching to a GitHub Actions jobGitHub Action
Replace an existing caching stepMigrate from rust-cache or sccache
Support pull requests from forksCI with fork pull requests
Connect a server or S3-compatible bucketRemote cache
Operate the reference serverCache server

Understand a result ​

TaskGuide
Diagnose an unexpected buildTroubleshooting
Rank where a rebuild's uncached compiler time wentAnalyzing a build
Interpret the cache countersCache results
See lifetime totals and workspace sharingSavings and statistics
Explore live activity and per-build insightsWatching builds
Learn the architectureHow it works
See which invocations mbx bypassesCaching limits
Read common questions and the story behind the nameFAQ

About mbx ​

Benchmarks includes measured results and the method behind them. How mbx compares explains the tradeoffs with other caches and Cargo's incremental compilation.

Look something up ​

To improve these docs or contribute code, read Contributing. The acknowledgements recognize the projects mbx builds on.

MIT LicenseCopyright © 2026jdx.dev