diff options
Diffstat (limited to 'skills/rust-bootstrap')
| -rw-r--r-- | skills/rust-bootstrap/SKILL.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/skills/rust-bootstrap/SKILL.md b/skills/rust-bootstrap/SKILL.md index a6d30d2..e29e1c6 100644 --- a/skills/rust-bootstrap/SKILL.md +++ b/skills/rust-bootstrap/SKILL.md @@ -24,7 +24,9 @@ Read: Apply the template deliberately: - replace placeholder members, names, and version/toolchain values +- replace the placeholder Cargo target-dir slug in `.cargo/config.toml` - keep repo-wide policy in root `Cargo.toml` +- keep Cargo target-dir policy in project-local `.cargo/config.toml`, not runner flags - keep `clippy.toml` tiny or delete it - keep runners thin and orchestration-only - create or adapt target `AGENTS.md` so it links to the canonical Rust style doctrine @@ -48,11 +50,13 @@ Retrofit is diff-aware ratchet work: - move duplicated script or CI flags into manifest-owned policy - delete duplicate policy copies only after the manifest is authoritative - add or preserve a target `AGENTS.md` link to the canonical Rust style doctrine +- add or preserve project-local `.cargo/config.toml` for `/data/main/cargo-target/<project-slug>` without touching user-global Cargo config ## Guardrails - Re-open the repo docs when details matter; do not rely on memory. - Install style inheritance through target `AGENTS.md`; do not assume future agents will remember this skill. +- Install Cargo target-dir posture through target `.cargo/config.toml`; do not rely on wrappers or mutate global Cargo config. - Use [docs/rust-linting-proposal.md](/home/main/programming/projects/rust_starter/docs/rust-linting-proposal.md) for rationale, not as a paste target. - If a target repo already exceeds the template in some area, keep the stricter local posture. - If a target repo intentionally diverges, adapt the pattern instead of forcing uniformity. |