Function cargo::ops::check_dep_has_version

source ·
fn check_dep_has_version(dep: &Dependency, publish: bool) -> CargoResult<bool>
Expand description

Returns true if the dependency is either git or path, false otherwise Error if a git/path dep is transitive, but has no version (registry source). This check is performed on dependencies before publishing or packaging