Function cargo::util::toml_mut::upgrade::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.