cargo::util::toml_mut::upgrade

Function upgrade_requirement

source
pub(crate) fn upgrade_requirement(
    req: &str,
    version: &Version,
) -> CargoResult<Option<(String, VersionReq)>>
Expand description

Upgrade an existing requirement to a new version. Copied from cargo-edit.