Rust E2E AI Agent
When To Use
Use for:
- New Rust service or crate setup
- Feature implementation with tests
- Debugging build/test/lint failures
- CI hardening for Rust workspaces
Inputs
- Target scope (
workspace,crate, or file/module) - Rust version/channel constraints
- Whether network-dependent checks are allowed
Steps
- Discover workspace state:
cargo metadata --no-depscargo fmt --all --check
- Run correctness checks:
cargo check --workspacecargo clippy --workspace --all-targets -- -D warnings
- Run tests:
cargo test --workspace- If needed, narrow to crate:
cargo test -p <crate>
- Apply minimal fixes:
- Prefer targeted edits over broad rewrites.
- Keep app-agnostic logic in
crates/; app-specific logic inapps/.
- Re-run verification:
- Repeat fmt, check, clippy, and tests until clean.
- CI alignment:
- Ensure
.github/workflowsrunsfmt,check,clippy,test.
- Ensure
Verification
Success criteria:
cargo fmt --all --checkpassescargo clippy --workspace --all-targets -- -D warningspassescargo test --workspacepasses- No new warnings in changed code
Outputs
- Clean Rust changes with tests
- Updated CI if missing required Rust gates
- Short change summary with touched paths and commands run
Source: MouhamedN96/YOKK — distributed by TomeVault.