-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-build-systemArea: build system integrationArea: build system integrationA-dep-infoArea: dep-info, .d filesArea: dep-info, .d filesA-layoutArea: target output directory layout, naming, and organizationArea: target output directory layout, naming, and organizationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.Status: Needs more info, such as a reproduction or more background for a feature request.
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
A-build-systemArea: build system integrationArea: build system integrationA-dep-infoArea: dep-info, .d filesArea: dep-info, .d filesA-layoutArea: target output directory layout, naming, and organizationArea: target output directory layout, naming, and organizationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.Status: Needs more info, such as a reproduction or more background for a feature request.