aio-rust-build

aio-rust-build is a skill for Claude Code from aiocean/claude-plugins. It costs 96 tokens per session (1,171 once invoked), scanned A, original, MIT.

A set of instructions for making Rust builds faster while limiting disk usage. It configures Cargo, Rust’s build tool, using settings for build locations, debug information, caching, incremental compilation, and cleanup.

In plain words
What is it for?
Use it when Cargo builds are slow, target folders fill the disk, several agents build at once, or you need to configure sccache, build directories, incremental compilation, or debug output.
Why use it?
Rust build folders can become large, and parallel builds can compete for disk space or repeat work. The workflow measures build times before changing settings and preserves deliberately chosen build locations.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the aio-rust plugin — 3 skills shipped together

Good fit Use it when Cargo builds are slow, target folders fill the disk, several agents build at once, or you need to configure sccache, build directories, incremental compilation, or debug output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiocean/claude-plugins/aio-rust-build
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aiocean/claude-plugins --skill aio-rust-build
Clone the repo
git clone --depth 1 https://github.com/aiocean/claude-plugins

Made for: Claude Code.

Or install aio-rust, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aio-rust-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-rust-build/github.svg)](https://agentmods.dev/skills/aiocean/claude-plugins/aio-rust-build)
Your own site
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-rust-build"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-rust-build/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aio-rust-build

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-rust-build"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-rust-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,171 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.01171
Opus 5.5 $0.00038 $0.00468
Sonnet 5.5 $0.00019 $0.00234
Haiku 4.5 $0.00010 $0.00117

Measured 9d ago against content hash b60800703672, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aio-rust-build scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/aio-rust/skills/aio-rust-build/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

aio-rust-build

Fast Rust builds with bounded disk use come from four settings, applied once in the global ~/.cargo/config.toml so every project gets them. Turning incremental compilation off is never one of them.

Before changing anything

  1. Read ~/.cargo/config.toml and every .cargo/config.toml from the project up to /, plus CARGO_TARGET_DIR, CARGO_BUILD_* and RUSTC_WRAPPER in the environment. An existing target-dir or build-dir usually points at a disk chosen on purpose, often because the internal disk is nearly full. Keep it. Do not export CARGO_TARGET_DIR over it.
  2. Measure: cargo build --timings writes an HTML report of which crates dominate the build. Apply a setting for a cause the report shows.

The global config

# Most debug-build bytes are DWARF. Line tables keep file:line in panics and backtraces.
[profile.dev]
debug = "line-tables-only"

# Dependencies are rarely stepped through in a debugger.
[profile.dev.package."*"]
debug = false

[build]
# Intermediates (deps, incremental, build scripts) in one folder per workspace, on the disk
# with room. Final binaries stay in each project's target/.
build-dir = "/path/with/room/rust-build/{workspace-path-hash}"
# Shares compiled third-party crates across projects.
rustc-wrapper = "sccache"
Setting Why Limit
debug = "line-tables-only", deps debug = false Shrinks the build dir and link time. On macOS most debug-build bytes are DWARF. Full variable inspection in a debugger needs debug = true again, per project.
build-dir with {workspace-path-hash} Moves heavy intermediates off the project folder. Each workspace gets its own folder, so parallel builds never wait on each other's lock. If the path is on a removable drive, builds fail while it is unplugged. That is better than silently filling the internal disk.
rustc-wrapper = "sccache" Compiles a given dependency version once for every project. Workspace crates build incrementally, which sccache does not cache. Expect a hit rate well under 100%; the non-cacheable calls are your own crates. Put its cache ([cache.disk] dir, size) on the same disk as the build dir.
Incremental stays on (the dev default) Rebuilds after a small edit recompile only what changed. It costs disk; bound that with cleanup, not by turning it off.

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 82 lines · 96 tokens per session scan A b60800703672

Subscribe to this mod's changes

aio-rust-build is a skill published in the GitHub repository aiocean/claude-plugins (4 stars, last pushed 4d ago), licensed MIT. It adds 96 tokens to every session and 1,171 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-21.

Related

aio-rust-build compared with skills from other repositories

aio-rust-build next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aio-rust-buildaiocean/claude-pluginsSkill44d agoMITA96Claude Code
agent-rust-experttravisjneuman/.claudeSkill115yesterdayMITA85Claude Code
rustMindrally/skillsSkill3221mo agoApache-2.0A16Claude Code
Codex-skill-rustopencue/cuecardsSkill10yesterdayMITA42Claude Code
dare-rust-workspacedewtech-technologies/dare-methodSkill54mo agoMITA81Claude Code, Codex
dare-rust-leptosdewtech-technologies/dare-methodSkill54mo agoMITA64Claude Code, Codex
dhh-rails-styledavekilleen/DexSkill5226d agoMITA115Claude Code