Open
Description
Problem
Currently only artefacts destined for uplift to the top-level target directory have extended dep-info generated for them.
In order for external build tools to be able to trivially ascertain whether it's necessary to invoke cargo to rebuild (and potentially re-run) test and example executables it would be ideal if cargo could, optionally, generate the extended dep-info for them as well.
Proposed Solution
Generate extended dep-info for test and binary executables.
- Generation enabled by environment variable
- Generate a new file alongside the binary and rustc dep-info in the
target/.../deps
folder, perhaps named something of the form<artefact-name>-<hash>-extended.d
.
Notes
I'm happy to do the work once the proposal is accepted and an implementation agreed.
Metadata
Metadata
Assignees
Labels
Area: build system integrationArea: dep-info, .d filesArea: target output directory layout, naming, and organizationCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Status: Needs more info, such as a reproduction or more background for a feature request.