Re-organize build-dir by package + hash, rather than artifact type (original) (raw)

Implementation:

Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#build-dir-new-layout

Resolves

Past efforts

Overview

Known issues

Unresolved issues

Open questions

Future extensions

Deferred layout changes

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.


Original

note: I specify build-dir to clarify which half of #14125 I'm referring to. The files and layout of build-dir does not have compatibility guarantees (source).

Currently, build-dir is laid out like

Currently,

In the future, we could have

These could be aided by re-arranging the build-dir to be organized around <package>-<hash>, like

Side effects