pub fn upgrade_requirement( req: &str, version: &Version, ) -> CargoResult<Option<String>>
Upgrade an existing requirement to a new version