Skip to main content

execute_publish

Function execute_publish 

Source
pub async fn execute_publish(
    manifest_path: &str,
    max_retries: u32,
) -> Result<Vec<PublishResult>, PublishError>
Expand description

Execute publish command for all packages in workspace

Publishes in [workspace.members] declaration order with the root package (if any) last, after validating the order against local dependency constraints.

§Arguments

  • &str: Path to workspace Cargo.toml
  • u32: Maximum retry attempts per package

§Returns

  • Result<Vec<PublishResult>, PublishError>: Results for all packages