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.
What it does
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
-
Extracted from upstream docs: https://raw.githubusercontent.com/bnjbvr/cargo-machete/HEAD/README.md
Documentation
Source
Capabilities
Install
Quality
deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,286 chars)