{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "morganlinton-beautifulrust--enforce-rust-rules-in-ci-with-the-clippy-lints",
 "repo": "morganlinton/BeautifulRust",
 "repo_url": "https://github.com/morganlinton/BeautifulRust",
 "repo_slug": "morganlinton-beautifulrust",
 "title": "Review a Rust PR and enforce the rules in CI with clippy",
 "page_title": "How to review a Rust PR and enforce the rules in CI with clippy with Beautiful Rust",
 "summary": "Run rust-review on a diff, then add the drop-in clippy config so the same rules hold in CI.",
 "who": "A maintainer who wants agent reviews that cite rules and a CI gate that keeps them.",
 "problem": "Style guidance in reviews slips back in a week later without a machine check.",
 "outcome": "A prioritized review report with a fix per finding, and CI that fails on the machine-checkable rules.",
 "steps": [
  "Ask the agent to run rust-review on a file, crate or diff; it runs cargo fmt and clippy and cites the rule each finding breaks",
  "Copy lints/clippy.toml next to your Cargo.toml and paste the [lints] block from lints/lints.toml into it",
  "Run `cargo clippy --all-targets --all-features -- -D warnings`",
  "Add that command to CI so violations fail the build"
 ],
 "agent_prompt": "Run the rust-review skill from morganlinton/BeautifulRust on <PR or diff>, then add its lints/clippy.toml and [lints] block to this crate and make `cargo clippy --all-targets --all-features -- -D warnings` pass.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "This card is written from the morganlinton/BeautifulRust README, not from a test run by Deduped. Before you start, make sure you have a Rust project and stable Rust. Check the repo for newer instructions before you rely on these steps.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "A Rust project and stable Rust",
  "Node 22.20+ for npx skills, or Claude Code, GitHub CLI 2.90+ or Gemini CLI",
  "clippy for the lints config"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/morganlinton-beautifulrust/enforce-rust-rules-in-ci-with-the-clippy-lints/",
 "md": "https://dedupedai.com/use-cases/morganlinton-beautifulrust/enforce-rust-rules-in-ci-with-the-clippy-lints/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/morganlinton-beautifulrust--enforce-rust-rules-in-ci-with-the-clippy-lints.json",
 "api_version": "v1"
}
