Main task is to identify an automated check for unused dependencies in the Cargo.toml file. cargo machete is one option. https://github.com/bnjbvr/cargo-machete