# Function cargo::util::toml::to_dependency

source ·

    pub(crate) fn to_dependency<P: ResolveToPath + Clone>(
        dep: &TomlDependency<P>,
        name: &str,
        source_id: SourceId,
        nested_paths: &mut Vec<PathBuf>,
        config: &Config,
        warnings: &mut Vec<String>,
        platform: Option<Platform>,
        root: &Path,
        features: &Features,
        kind: Option<DepKind>
    ) -> CargoResult<Dependency>