Tonight's #rustlang nightly will have Cargo's linting system enabled by default, including unused dependency detection!
These lints can only be configured through the manifest's `[lints.cargo]` and config's `build.warnings` (https://doc.rust-lang.org/stable/cargo/reference/config.html#buildwarnings). RUSTFLAGS has no impact on it.
For the full set of lints in the initial release, see https://doc.rust-lang.org/nightly/cargo/reference/lints.html