スキル一覧に戻る
onbjerg

cargo-shear

by onbjerg

dotfiles

4🍴 1📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: cargo-shear description: Finds and removes unused dependencies from Rust projects. Use when cleaning up a Rust repository, removing dead deps, or auditing Cargo.toml.

cargo-shear

Detects and removes unused dependencies from Cargo.toml files.

Usage

Find unused dependencies

cargo shear

Fix automatically (remove unused deps)

cargo shear --fix

Key Options

  • --fix - Automatically remove unused dependencies from Cargo.toml
  • --ignore <CRATE> - Ignore specific crate (for false positives)

Workflow

  1. Run cargo shear to list unused deps
  2. Review the output for false positives (proc macros, build deps, optional features)
  3. Run cargo shear --fix to remove them
  4. Run cargo build to verify nothing broke

Common False Positives

Some deps may appear unused but are actually needed:

  • Proc macro crates (e.g., serde_derive)
  • Build dependencies
  • Crates used only via feature flags
  • Crates re-exported by other crates

Use --ignore <CRATE> for legitimate false positives.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です