Function cargo_edit::get_compatible_dependency

source ยท
pub fn get_compatible_dependency(
    crate_name: &str,
    version_req: &VersionReq,
    rust_version: Option<RustVersion>,
    index: &mut AnyIndexCache,
) -> CargoResult<Dependency>
Expand description

Find the highest version compatible with a version req