cargo::util::toml

Function dep_to_dependency

Source
fn dep_to_dependency<P: ResolveToPath + Clone>(
    orig: &TomlDependency<P>,
    name: &str,
    manifest_ctx: &mut ManifestContext<'_, '_>,
    kind: Option<DepKind>,
) -> CargoResult<Dependency>