Skip to content

FAQ ​

Common questions about reuse, storage, and compatibility. For a specific build problem, start with Troubleshooting.

Is deleting the cache safe? ​

Yes. The shared compiler outputs can be rebuilt. For routine cleanup, preview with mbx gc --dry-run, then run mbx gc to reclaim space under the configured policy. Deleting the whole cache directory also removes private incremental state and, unless target.root places them elsewhere, managed target directories, so stop running builds first. See The store is disposable.

Why wasn't my first build faster? ​

A cold store has no results to restore. The first build records compilation inputs and outputs for later reuse.

A second command in the same target directory is often already fresh to Cargo, so it measures Cargo's freshness check rather than mbx reuse. To measure reuse, build into two fresh target directories. The warm build benchmark shows what such a second build gains. If reuse stays low, see Troubleshoot a low hit rate.

Why does a fully warm build still take time? ​

Cargo still plans the build, mbx validates inputs and materializes outputs, and any unsupported actions run normally. mbx can restore eligible host binaries and tests on Linux, macOS, and Windows, but links with unmodeled inputs still run. See Caching limits.

The cache stopped hitting after a Rust update. Is it broken? ​

No. The compiler is part of every cache key, so a toolchain update invalidates every rustc action at once. The one-line summary that local builds print counts those compilations as not looked up.

The ci summary (the default in CI) and the full summary (MBX_SUMMARY=full) also name the cause: a manifest predicting N compilations was loaded, but none matched this build. They print that line only when the build loaded recorded predictions, looked nothing up, and could not look up at least half as many compilations as were predicted.

Actions that do not depend on rustc, such as a build script's C objects, survive. If any of them is looked up, whether it hits or misses, the summaries leave that line out.

Can I use mbx together with sccache? ​

No. Both wrap rustc through RUSTC_WRAPPER, so they cannot be combined for the same build. When RUSTC_WRAPPER is already set, mbx defers to it, warns, and does not cache the build. mbx treats a preset RUSTC_WORKSPACE_WRAPPER other than Clippy's clippy-driver the same way for workspace crates: it defers to the wrapper and does not cache those compilations. See Migrate from rust-cache or sccache.

Can I use mbx together with blaze? ​

Yes. blaze, formerly ra-jit, sets Cargo's RUSTC_WORKSPACE_WRAPPER for the builds it runs, which can be after mbx starts its session. mbx passes those workspace compiler calls through to blaze and leaves their existing object files alone when the wrapper reports success. Other eligible Rust compilations, such as dependencies, can still use mbx's cache. The build summary counts each workspace crate blaze compiles as a workspace-wrapper bypass.

blaze rebuilds an edited function in milliseconds only when its own client runs in place of Cargo, as blaze build does. To get that from plain cargo commands, turn on the blaze setting:

sh
export MBX_BLAZE=1
cargo build

mbx's Cargo shim then runs blaze build instead. Only dev build, run, test, and check commands go to blaze; --release and --profile builds and other commands run Cargo as before. blaze builds without running Cargo, so there is no Cargo call for mbx to catch and mbx's cache sees none of those builds. The shim runs blaze test with BLAZE_TESTS=all unless BLAZE_TESTS is set, so a routed cargo test runs every test, as Cargo does. A blaze test you run yourself defaults to the tests an edit affects and can reuse passing results.

Releases of blaze from before its rename to blaze ship ra-jit and no blaze. With only ra-jit on PATH, the shim runs ra-jit cargo build instead, and ra-jit's own Cargo builds come back through the Cargo shim that mbx setup installs, so they use the cache. This fallback goes away in mbx 2.0.

blaze builds with its own pinned toolchain whatever toolchain the project selects (blaze toolchain --path shows it), so the entries its builds store serve other blaze builds, not builds with another toolchain.

Are restored artifacts byte-identical to freshly compiled ones? ​

Equivalent, not always identical: rustc and C compilers record absolute source paths in metadata and debug information, so artifacts from two checkouts can differ without behaving differently. MBX_VERIFY=1 compares bytes and names what differed. See Caching limits.

Where does everything live? ​

cache_dir (MBX_CACHE_DIR) sets the cache directory. mbx cache dir prints the store inside it, <cache_dir>/actions. By default, managed targets live beside the store in <cache_dir>/targets; target.root can place them elsewhere. Configuration comes from the paths listed in Configuration.

How do I turn one feature off? ​

Each feature below has its own switch. mbx settings set turns it off from then on; the environment variable turns it off for one command.

Turns offCommandFor one command
machine-wide compile scheduling, including deduplication of identical compilations running at oncembx settings set scheduler.enabled falseMBX_SCHEDULER=0
build-script and mbx exec C and C++ cachingmbx settings set cc falseMBX_CC=0
managed target directoriesmbx settings set target.views falseMBX_TARGET_VIEWS=0
automatic collection; mbx gc still reclaims space on demandmbx settings set gc.auto falseMBX_GC_AUTO=0
native link cachingenvironment onlyMBX_CACHE_LINKS=0
learned incremental reusembx settings set learned_incremental falseMBX_LEARNED_INCREMENTAL=0
per-compilation event streamsmbx settings set events falseMBX_EVENTS=0
the savings linembx settings set savings offMBX_SAVINGS=off

Something looks wrong. What should a report include? ​

Include the output of mbx doctor --json, a build run with MBX_LOG=debug, and the bypass log that MBX_BYPASS_LOG writes. Report a problem shows the commands and what each one reveals about your machine.

Why is it called Mr Boxington? ​

The project is named after this cardboard box, christened “Mr Boxington” by jdx's daughter while he was working on mbx. The name stuck.

For non-English speakers

The joke is in “Boxington”: it combines box with -ington, an ending familiar from English place names and surnames. The result makes an ordinary cardboard box sound like a distinguished gentleman.

A child kneeling inside a tall cardboard box decorated with a face and a strawberry

The original Mr Boxington.

MIT LicenseCopyright © 2026jdx.dev