Skip to content

Remove rlibs as final artifacts #17278

Description

@epage

Only treat rlibs as intermediate artifacts and not final artifacts, meaning that they would only be found in build-dir and not also the target-dir at paths like target/release/foo.rlib.

The problem with rlibs is that Cargo does not uplift any rlib dependencies to being final artifacts as well. This makes it so the only ways to successfully use rlibs are

  • have no dependencies so when you build, all rlibs you care about are uplifted
  • only use build-dir rlibs by monitoring json messages from cargo

As this seems broken, this should be fine within our compatibility guarantees to change but I am wondering if there is anything I am overlooking

By making this change, it reduces the conversations we have to have around what are safe evolutions of rlibs, e.g. #15495

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-layoutArea: target output directory layout, naming, and organizationC-enhancementCategory: enhancementS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions