How to find unused dependencies within a workspace?

Is GitHub - bnjbvr/cargo-machete: Remove unused Rust dependencies with this one weird trick! the way to go, or is there something else ?

I am trying to find situations where crateA/cargo.toml has crateB as a dependency, but crateA does not actually use anything from crateB.

1 Like

I've used https://crates.io/crates/cargo-udeps before, but I don't know if it specifically works between crates...I'm pretty sure it does, but double check ;-).