agentleFS
DankosikDankosik/rust-cli-skills/skills/rust-build/SKILL.md

rust-build

Skill0 starsChanged 2 months agoMITView on GitHub

Resolution. Use for Rust CLI Cargo configuration, toolchains, dependency features, compiler or linker failures, and requested build-profile changes.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Rust Build

Resolution. Explain what Cargo actually selects before changing its declarations. Identify the affected Cargo command and inspect the layer that can explain it: resolution/features, compiler compatibility, linking, profile, or packaging. Read workspace configuration and environment as needed, not as an exhaustive preflight. Honor supplied requirements and preserve settled choices outside the requested change; resolve only what the task leaves open.

Separate the compiler running the build, language edition, minimum supported Rust version, and executable target. Declaring rust-version does not prove dependencies or source compile on that version; exercise the baseline when compatibility is affected or required, and never substitute a newer host build as proof. A host build cannot establish target linker or system-library compatibility.

Trace dependencies through the resolved graph and feature activation. Declare directly used crates in the consuming package. Preserve the application's Cargo.lock and use locked resolution where reproducibility is required. Inspect transitive defaults: disabling a feature on one edge does not prevent another dependency from enabling it.

Choose only dependencies and features the present CLI needs. Review their maintenance, licensing, and vulnerability evidence when changing them, with scope proportional to the change. Keep build scripts and procedural macros in the build-time trust analysis. Do not fabricate lockfile checksums or bypass integrity checks to fix downloads.

For profile or feature changes, inspect workspace-root settings and the supported combinations affected. Optimize for the requested metric; strip, LTO, codegen units, and panic strategy have different effects. Panic abort changes cleanup behavior and cannot be treated as a free size setting.

For analysis, explain the failing or proposed build layer without editing. For requested changes, use the existing formatting, compiler, Clippy, test, or artifact command that establishes the affected claim, preserving required checks and lint policy. Check relevant default and feature configurations; all-features success is not proof that the default path works, and unsupported combinations need not be invented. Reuse valid results and report unavailable targets or toolchains. Explain the change and observed result without treating compilation as runtime verification.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.