pub fn set_version(
path: impl AsRef<Path>,
version: impl AsRef<str>
) -> Result<(), Error>
Sets the version inside a Cargo.toml file.
path: The path to the Cargo.toml file.
version: The version to write into the file. Note that no checks are
done to see whether the value contains a valid semver version.
An error if something went wrong during IO operations or parsing.