Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By cheolwanparkv1.0.0MITIn 1 marketplace
Automatically format Rust files with rustfmt and provide on-demand clippy linting
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude writes or edits files
A command runs shell commands (! syntax) when you invoke it
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
rust, linting, formatting, rustfmt, clippy, static-analysis, code-quality, cargo
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Automatically format Rust files with rustfmt and provide on-demand comprehensive linting with clippy.
.rs files on every edit/write using rustfmt/tmp to avoid project pollutionUnlike ESLint or Ruff, clippy requires full cargo compilation and can take 5-30+ seconds even on small projects. Running clippy on every file save would make the editor unresponsive.
Our solution:
/rust-lint:lint-project): Comprehensive clippy analysis (user-initiated, acceptable wait time)This design provides immediate formatting feedback while preserving comprehensive linting when you need it.
rustup component add rustfmtrustup component add clippybrew install jqapt-get install jqPlace this plugin in your Claude Code plugins directory:
# If you haven't cloned the repository
cd ~/.claude/plugins # or your plugins directory
git clone https://github.com/cheolwanpark/useful-claude-plugins
cd useful-claude-plugins/plugins/rust-lint
# Or if you already have the repository
cd /path/to/useful-claude-plugins/plugins/rust-lint
rustup component add rustfmt clippy
rustfmt --version
cargo clippy --version
jq --version
The plugin will be automatically detected by Claude Code. You can verify it's loaded by checking for the /rust-lint:lint-project command.
Triggered on: Every Edit or Write operation on .rs files
What it does:
.rs and <1MBrustfmt is installedrustfmt --check to see if formatting is neededrustfmt to auto-formatallow decision (never blocks)Performance:
File size limit: Files larger than 1MB are skipped to avoid timeouts. Use cargo fmt manually for large files.
Command: /rust-lint:lint-project [directory]
What it does:
cargo fmt --checkcargo clippy --workspace --all-targets --no-depsPerformance:
Build artifacts: Isolated to /tmp/claude-rust-lint-cache-<project-hash> to avoid polluting your project directory.
Create a rustfmt.toml or .rustfmt.toml in your project root:
# Edition must match Cargo.toml
edition = "2021"
# Line width
max_width = 100
# Indentation
hard_tabs = false
tab_spaces = 4
# Imports
imports_granularity = "Crate"
group_imports = "StdExternalCrate"
# Trailing commas
trailing_comma = "Vertical"
# Use field init shorthand
use_field_init_shorthand = true
Generate default config:
rustfmt --print-config default > rustfmt.toml
Option 1: Cargo.toml [lints] (Recommended for Rust 1.74+)
[lints.clippy]
# Enable groups
all = "warn"
pedantic = "warn"
# Deny specific lints
unwrap_used = "deny"
expect_used = "warn"
# Allow noisy pedantic lints
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
Option 2: clippy.toml or .clippy.toml
# Cognitive complexity threshold
cognitive-complexity-threshold = 30
# Maximum allowed type complexity
type-complexity-threshold = 250
# Maximum allowed function parameters
too-many-arguments-threshold = 7
# Allowed variable names
allowed-names = ["i", "j", "k", "x", "y", "z"]
Option 3: Source code attributes
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub cheolwanpark/claude-plugins --plugin rust-lintPlugins from other owners that cover similar ground