diff options
| author | main <main@swarm.moe> | 2026-06-13 12:10:55 -0400 |
|---|---|---|
| committer | main <main@swarm.moe> | 2026-06-13 12:10:55 -0400 |
| commit | 4735637ead09c4e8d4b9a0409d7ea2538eb9cb40 (patch) | |
| tree | 344558bb4616293e7f9f3bcdc4dae6cbbcc0b608 /skills/rust-bootstrap | |
| parent | 89dba1d9c0034e6bc544b0f002a65ffe0b29e7dc (diff) | |
| download | rust_starter-4735637ead09c4e8d4b9a0409d7ea2538eb9cb40.zip | |
Update Rust starter bootstrap posture
Install project-local Cargo target-dir guidance and template config, keep Cargo output under /data/main/cargo-target/<project-slug>, preserve the global shared target fallback, and raise the source-file cap to 3000 lines.
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. |