Skip to content

Turn cargo into a library-only crate, and move the binary part to rustc #5682

@infinity0

Description

@infinity0

I just noticed #5083 and have an alternative suggestion:

  • Turn cargo into a library-only crate with an unstable 0.x version.
  • Move cargo-the-binary into the rustc repo and share its stable 1.y version.

Now there is quite a lot of code in src/bin but that could be moved to src/lib/bin or something, so cargo-the-binary only has to be a very thin wrapper around it. (On second thoughts, perhaps it's better to simply move this to rustc so that the stability of it is easier to track and keep in line with rustc.)

The unstable cargo version should still be available on cargo --version --verbose though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions