Is there anyway to detect if a dependency in Cargo.toml is unnecessary?
Unfortunately that requires nightly
That is what I am looking for
The easiest way to prevent from building unused deps is set -F/-D unused-crate-dependencies
in .cargo/config.toml file if you don't want to install third party tools.
2 Likes
F/-D unused-crate-dependencies
in .cargo/config.toml
I had no idea what ".cargo/config.toml"is for, and only a hazy idea it existed
Here it is