Skip to content
Back to skills

Remove Unused Rust Dependencies Before They Quietly Bloat Builds And Reviews With Cargo Machete

ASecurity

Use cargo-machete when an agent needs to find and remove unused Rust dependencies before they keep inflating build time, review noise, and manifest drift.

  • 36 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 2, 2026
ai-agentsrustgoshellbashdockergitsecuritydocumentation

Security analysis

A100/100

Scanned June 2, 2026

npx -y skills add agentskillexchange/skills --skill remove-unused-rust-dependencies-before-they-quietly-bloat-builds-and-reviews-with-cargo-machete --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Remove Unused Rust Dependencies Before They Quietly Bloat Builds And Reviews With Cargo Machete?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Remove Unused Rust Dependencies Before They Quietly Bloat Builds And Reviews With Cargo Machete
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-remove-unused-rust-dependencies-before-they-quietl/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-remove-unused-rust-dependencies-before-they-quietl)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Remove unused Rust dependencies before they quietly bloat builds and reviews with cargo-machete"
slug: "remove-unused-rust-dependencies-before-they-quietly-bloat-builds-and-reviews-with-cargo-machete"
description: "Use cargo-machete when an agent needs to find and remove unused Rust dependencies before they keep inflating build time, review noise, and manifest drift."
github_stars: 1280
verification: "security_reviewed"
source: "https://github.com/bnjbvr/cargo-machete"
author: "bnjbvr"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "bnjbvr/cargo-machete"
  github_stars: 1280
  npm_package: "cargo-machete"
  npm_weekly_downloads: 2073590
---

# Remove unused Rust dependencies before they quietly bloat builds and reviews with cargo-machete

Use cargo-machete when an agent needs to find and remove unused Rust dependencies before they keep inflating build time, review noise, and manifest drift.

## Prerequisites

Rust toolchain, Cargo project, and shell access for dependency scans and cleanup edits.

## Installation

Use the upstream install or setup path that matches your environment:
- cargo-machete is a Cargo tool that detects unused dependencies in Rust
- cargo install cargo-machete
- Run cargo-machete in a directory that contains one or more Rust projects (using Cargo for
- cargo machete /absolute/path/to/my/directory

Requirements and caveats from upstream:
- ## Docker Image
- A docker image for cargo machete.

Basic usage or getting-started notes:
- dependency management):
- bash
- cd my-directory && cargo machete

- Source: https://github.com/bnjbvr/cargo-machete
- Extracted from upstream docs: https://raw.githubusercontent.com/bnjbvr/cargo-machete/HEAD/README.md

## Documentation

- https://github.com/bnjbvr/cargo-machete#readme

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/remove-unused-rust-dependencies-before-they-quietly-bloat-builds-and-reviews-with-cargo-machete/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.