Function semantic_release_rust::prepare [−][src]
pub fn prepare(
_output: impl Write,
manifest_path: Option<impl AsRef<Path>>,
version: &str
) -> Result<()>
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 or build-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 implments the prepare
step for sementic-release
for a Cargo-based Rust
workspace.