cargo::util::toml

Function to_dependency

Source
pub(crate) fn to_dependency<P: ResolveToPath + Clone>(
    dep: &TomlDependency<P>,
    name: &str,
    source_id: SourceId,
    gctx: &GlobalContext,
    warnings: &mut Vec<String>,
    platform: Option<Platform>,
    root: &Path,
    kind: Option<DepKind>,
) -> CargoResult<Dependency>