Expand description
Publishes interdependent Cargo workspace packages in dependency order.
The crate discovers workspace members with Cargo metadata, resolves local dependency order, and
runs cargo publish concurrently for packages whose dependencies are available.
§Examples
use publish_crates::{Options, publish};
use std::path::PathBuf;
publish(Options {
path: PathBuf::from("Cargo.toml"),
registry_token: None,
dry_run: true,
publish_delay: None,
no_verify: false,
resolve_versions: false,
include: None,
exclude: None,
max_retries: None,
concurrency_limit: Some(4),
extra_args: Vec::new(),
})
.await?;Structs§
- Options
- Configures workspace package selection and publishing behavior.
Enums§
- Publish
Error - Classification of publishing errors.
Functions§
- publish
- Publishes selected workspace packages to crates.io in dependency order.