You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There doesn't seem to be a way to automatically detect when a crate listed in the manifest is unused. Removing unused crates from the build could help compile times, and is just good housekeeping.
After some investigation it looks like the new -Z binary-dep-depinfo flag, which adds binary dependencies to the makefile rules it outputs as part of the build, can be parsed and compared to the manifest to accomplish this.
It might also be worth adding such logging at the info! level to rustc itself, using the existing bookkeeping for binary-dep-depinfo - this would probably be an easier approach.
The text was updated successfully, but these errors were encountered:
There doesn't seem to be a way to automatically detect when a crate listed in the manifest is unused. Removing unused crates from the build could help compile times, and is just good housekeeping.
After some investigation it looks like the new
-Z binary-dep-depinfo
flag, which adds binary dependencies to the makefile rules it outputs as part of the build, can be parsed and compared to the manifest to accomplish this.It might also be worth adding such logging at the
info!
level to rustc itself, using the existing bookkeeping for binary-dep-depinfo - this would probably be an easier approach.The text was updated successfully, but these errors were encountered: