Skip to main content

set_package_version

Function set_package_version 

Source
pub fn set_package_version(
    manifest: &str,
    from: &str,
    to: &str,
) -> Result<String, BumpEditError>
Expand description

Rewrite the root [package] version = "<from>" line to to, preserving the line’s formatting and failing closed when the sealed source version is absent.