cargo::util::toml

Function dependency_inherit_with

source
fn dependency_inherit_with<'a>(
    dependency: InheritableDependency,
    name: &str,
    inherit: &dyn Fn() -> CargoResult<&'a InheritableFields>,
    package_root: &Path,
    edition: Edition,
    warnings: &mut Vec<String>,
) -> CargoResult<TomlDependency>