在cargo-machete安静地使构建和审查臃肿之前,移除未使用的Rust依赖项
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/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/bnjbvr/cargo-machete/HEAD/README.md
Documentation
- https://github.com/1991513ccie-png/skills