Skip to content

Publish Workspace #14347

@kyledecot

Description

@kyledecot

Problem

When publishing a workspace based crate that has path based dependencies A -> B -> C -> D you need to run a separate cargo publish command for each dependency:

cargo publish -p d
cargo publish -p c
cargo publish -p b
cargo publish

This requires that the publish commands are ran in the correct order which becomes more difficult as the dependency graph grows.

Proposed Solution

Support publishing all local/path based crates via:

cargo publish --workspace

Notes

No response

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`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions