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
Run tests and Clippy at the same timeParallel builds
Understand what is stored or deletedManaged target directories
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

Start with Troubleshooting for an unexpected build. Read Cache results to interpret the counters, How it works for the architecture, and Caching limits for invocations mbx bypasses.

Use Savings and statistics for lifetime totals and workspace sharing, or Watching builds to explore live activity and per-build insights.

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