cargo-machete
Use this skill when the user wants to find or remove unused dependencies in a Rust project or Cargo workspace.
от javimosch★ 58 звёзд на GitHub
Установить cargo-machete в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
cargo-machete Plugin
cargo-machete scans Rust source files for imports of each declared dependency and reports crates that are never used. Works on single crates and workspaces.
Commands
cargo-machete deps scan— Scan current dir or paths for unused deps (exit 1 = findings exist)cargo-machete deps fix—cargo machete --fix: remove unused deps from Cargo.tomlcargo-machete _ _— Passthrough to cargo-machete CLI
Usage Examples
- "Find unused dependencies in this Rust project"
- "Prune dead crates from my workspace's Cargo.toml files"
- "Add an unused-deps check to CI"
Installation
cargo install cargo-machete
# or: cargo binstall cargo-machete
# or: brew install cargo-machete
Examples
cargo machete # scan cwd / workspace
cargo machete ./crate-a ./crate-b # scan specific paths
cargo machete --fix # remove findings
cargo machete --with-metadata # include version/source info
Key Features
- Much faster than cargo-udeps (no nightly, no compile — it's an import scan)
- Workspace-aware; respects
[package.metadata.cargo-machete]ignored lists for macro/build-script false positives - Non-zero exit on findings → drop into CI as a lint gate
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cargo-machete?
Use this skill when the user wants to find or remove unused dependencies in a Rust project or Cargo workspace.
Как установить скилл cargo-machete?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cargo-machete запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…