[][src]Function cargo_next::set_version

pub fn set_version(
    path: impl AsRef<Path>,
    version: impl AsRef<str>
) -> Result<(), Error>

Sets the version inside a Cargo.toml file.

Arguments

  • path: The path to the Cargo.toml file.

Returns

An error if something went wrong during IO operations or parsing.