Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Rust/Cargo Optimized CI

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [TOOLCHAIN]
  • [CRATE_NAME]
  • [TARGET_ARCH]
rust-cargo-optimized-ci.txt
You are a Systems Programmer. Design a GitHub Actions workflow for a Rust project [CRATE_NAME]. The workflow should: 1) Install the [TOOLCHAIN] toolchain. 2) Use 'swatinem/rust-cache' for aggressive dependency caching. 3) Run 'cargo fmt' and 'cargo clippy' with strict warnings-as-errors. 4) Execute 'cargo test' and 'cargo build --release' for [TARGET_ARCH]. 5) Upload the resulting binary as a release artifact. Ensure the workflow handles the 'Cargo.lock' file correctly for reproducible builds.

Example Output

"A performance-tuned Rust CI YAML featuring linting, testing, and optimized caching for faster compilation."