Repository navigation
Mitts 0.3.3
Mitts 0.3.3 reduces planning and filesystem work on cache hits and fixes host feature handling for primary proc-macro crates.
Cache-hit performance
- Share manifest bytes, parsed manifests and manifest digests within one build plan, including its key and DAG workers. The snapshot is invocation-scoped; disk-byte and ancestor-manifest checks still reject changed inputs.
- Allocate build-script staging/output directories only when needed. Reuse the current execution's OUT_DIR purity calculation instead of scanning the same output twice.
- Continue linting a primary build.rs in Clippy mode even when its execution is cached.
In a five-pair diagnostic on itoa (12 concurrent worktrees, 47 cached units, zero compiled units and two test binaries per worktree), median wall time changed from 1.510 to 0.306 seconds on Apple Silicon/APFS (4.94x), and from 0.0622 to 0.0429 seconds on x86_64 Linux/XFS (1.45x). Single-worktree improvements were about 1.2x. Linux successful Cargo.toml opens decreased from 544 to 301; freshness rereads remain. These are measurements of this warm-cache case, not a general build-speed guarantee or a complete T0-T5 study.
Correctness
- Seed primary proc-macro roots in the host context and propagate their host dependency features.
- Preserve defaults, explicit features and dev-dependencies for proc-macro test targets under Resolver 2; retain Resolver 1 unification.
- Preserve impure OUT_DIR cache matching and native OS paths in build-script command construction.
Library API note: callers constructing EffectivePlanExplanation with a struct literal must initialize the new runtime-only manifest_snapshot field with Default::default(); serialized plan output is unchanged. The build_script_cas::try_restore_build_script_cas output-directory argument is now optional.
Validation: 32 focused release-mode tests passed on Linux, 13 on macOS, plus the directly affected manifest and build-script invalidation/purity tests. Library Clippy passed with warnings denied. The full test suite was not run for this change.
Install or update:
cargo install mitts --version 0.3.3 --lockedFull history: v0.3.2...v0.3.3