Skip to content

Consider breaking some of the utils out into separate modules #2259

Open
@wraithan

Description

@wraithan

Currently building a subcommand, would be nice to be able to link in small libraries for things that subcommand authors will want to mirror from cargo's core commands. In this case I needed to link cargo in for cargo::util::important_paths::find_project_manifest to make sure my behavior matches what cargo does, even if cargo changes the behavior over time. Which adds a ton of time to my cold builds because cargo is large and has lots of deps.

I imagine there are likely other utilities that will make more sense as separate modules too, which is why I made the issue a bit more generic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cargo-apiArea: cargo-the-library API and internal code issuesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-team-inputStatus: Needs input from team on whether/how to proceed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions