/dwin-skills:rust-buildfrom Dwin Skills
Rust compilation caches. Use when configuring, diagnosing, or sharing sccache, shared target directories, or container and CI cache reuse, or when reducing Rust build storage across workspaces or runners.
Ships in Dwin Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Follow managing-workspaces for workspace and build-lane lifecycle, when available.
For targets and runtimes, follow the repository's instructions; a successful
cross-compile does not prove runtime compatibility.
sccache cannot cache an incrementally compiled rustc invocation. Cargo compiles incrementally only workspace members and path dependencies, so with incremental left on, sccache still caches eligible registry and Git dependencies.
Keep incremental compilation for normal development. Set CARGO_INCREMENTAL=0
when you deliberately want sccache to cache workspace and path crates, such as
disposable builders or reuse across workspaces, after measuring that it beats
incremental rebuilds for the workload.
SCCACHE_DIR race and fail builds. When separate daemons (containers, runners)
would share a store, hold one lock beside the store for each daemon's whole
lifetime, give each daemon its own bounded store, or use a shared backend.sccache --stop-server, then confirm cache location and size in
sccache --show-stats.SCCACHE_CACHE_SIZE (default 10 GiB) bounds only the sccache store; target
directories, package downloads, and Docker build cache grow separately.bin, dylib, cdylib, proc-macro) are
never cached; their library dependencies can be.SCCACHE_BASEDIRS normalizes C and C++ paths, not Rust.Cargo reporting Fresh means rustc never ran, so sccache saw nothing. Read
sccache --show-stats before and after a build that really compiles, such as a
fresh target directory with otherwise identical inputs, and report hits, misses,
and non-cacheable reasons. Zero statistics only on a server your task owns.
Cargo decides freshness mainly from file timestamps. Restored or copied sources with old timestamps can make a reused target directory look up to date against changed code; use a fresh target directory unless the source snapshot provably matches. Cargo serializes builds on one target directory, so copy each task's artifacts out before the next build overwrites them.
Host cache settings (environment, Cargo config, a running sccache server) do not
reach a container or runner; configure the wrapper and cache inside it. Mount only
$CARGO_HOME/registry and $CARGO_HOME/git into a builder; the rest of the host's
Cargo home holds host binaries, configuration, and credentials. For Docker
builders, read Linux Docker builds.
When the task needs reproducibility, record rustc -Vv, sccache --version, the
image digest, and the lockfile used. Ask before pruning existing caches, volumes,
or target directories.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dwin/skills --plugin dwin-skills52 skills in this plugin
/arenaHave several agents attempt the same task, pick the strongest attempt as the base, and graft the best parts of the others into it. Use for "arena this" or when one attempt at an artifact would lock in the wrong shape./autopilotDrive a branch to a ready pull request. Keeps it current with its base, gets local review from a different model family, marks it ready, and handles CI and AI-reviewer feedback. With `merge`, also merges it. Use when the user invokes autopilot./babysitMonitor or babysit an open pull request through CI, mergeability changes, and review feedback. Use when the user asks to watch a PR, keep checking it, diagnose checks, address in-scope findings, or stay with it until it is merged, closed, or genuinely needs user input.