Skip to main content

resolve_publish_order

Function resolve_publish_order 

Source
pub async fn resolve_publish_order(
    manifest_path: &str,
) -> Result<Vec<Package>, PublishError>
Expand description

Resolve the publish order for a workspace: [workspace.members] declaration order, with the root package (if any) placed at its topological position, validated against local dependency constraints.

§Arguments

  • &str: Path to the workspace root Cargo.toml

§Returns

  • Result<Vec<Package>, PublishError>: Ordered packages, or an error when the members order violates a local dependency.