Skip to content

Tracking usecases for getting intermediate build artifacts from build-dir #17287

Description

@ranger-ross

Currently, the Cargo build-dir's internals are considered internal to Cargo.
Assuming a specific file structure is considered relying on Cargo's implementation details are not subject to Cargo's stability guarantees.

However there are usecases where tools need to use intermediate build artifacts from rustc, but not all files in build-dir have a stable way to access them so tools are forced to assume on the build-dir's file layout to work.
This is not ideal as when Cargo change's the build-dir internals it leads to breakage for tools (e.g. #15010)

This issue is serves a place to collect the various usecases to hopes that we could provide stable ways interact with build-dir artfiacts.

Known Usecases

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-layoutArea: target output directory layout, naming, and organizationC-tracking-issueCategory: A tracking issue for something unstable.

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions