Quoting from #53128 (comment)
Previously warn(unused_extern_crates) was a way to detect unused dependencies. How can I:
- declare dependencies in the root module
- be warned when those dependencies are not used
As it is now, cargo builds all dependencies and does not warn if they are unused.
Quoting from #53128 (comment)