Function semantic_release_cargo::prepare
source · pub fn prepare(
output: impl Write,
manifest_path: Option<&Path>,
next_release_version: String,
) -> Result<()>
Expand description
Prepare the Rust workspace for a release.
Preparing the release updates the version of each crate in the workspace and of
the intra-workspace dependencies. The version
field in the packages
table of
each Cargo.toml
file in the workspace is set to the supplied version. The
version
field of each dependency, build-dependency and dev-dependency that
is otherwise identified by a workspace-relative path dependencies is also set
to the supplied version (the version filed will be added if it isn’t
already present).
This implements the prepare
step for semantic-release
for a Cargo-based Rust
workspace.