## config_patch_to_dependency

# Function config_patch_to_dependency

Source

    pub(crate) fn config_patch_to_dependency<P: ResolveToPath + Clone>(
        config_patch: &TomlDependency<P>,
        name: &str,
        source_id: SourceId,
        gctx: &GlobalContext,
        warnings: &mut Vec<String>,
    ) -> CargoResult<Dependency>

Expand description

Transforms a `patch` entry from Cargo config to a `Dependency`.