Function cargo::util::toml::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>