cargo::ops::registry

Function get_source_id_with_package_id

Source
fn get_source_id_with_package_id(
    gctx: &GlobalContext,
    package_id: Option<PackageId>,
    reg_or_index: Option<&RegistryOrIndex>,
) -> CargoResult<(bool, RegistrySourceIds)>
Expand description

Very similar to get_source_id, but is used when the package_id is known.