From ed17b228e3ac844edc49a4e67e567b39bc63b7c9 Mon Sep 17 00:00:00 2001 From: Boshen Date: Sat, 16 Mar 2024 23:15:40 +0800 Subject: [PATCH] add usage instructions --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index fafc69e..30a660c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,14 @@ Detect and remove unused dependencies from `Cargo.toml` in Rust projects. +## Usage + +```bash +cargo install cargo-shear +cargo shear +``` + + ## Technique 1. use the `cargo_metadata` crate to list all dependencies specified in `[workspace.dependencies]` and `[dependencies]`