fn verify_dependencies(pkg: &Package) -> CargoResult<()> {
    for dep in pkg.dependencies() {
        if dep.source_id().is_path() && !dep.specified_req() && dep.is_transitive() {
            anyhow::bail!(
                "all path dependencies must have a version specified \
                 when packaging.\ndependency `{}` does not specify \
                 a version.",
                dep.name_in_toml()
            )
        }
    }
    Ok(())
}
// Checks that the package dependencies are safe to deploy.
Checks that the package dependencies are safe to deploy.
Checks that the package dependencies are safe to deploy .
fn verify_dependencies(pkg: &Package) -> CargoResult<()> {
    for dep in pkg.dependencies() {
        if dep.source_id().is_path() && !dep.specified_req() && dep.is_transitive() {
            anyhow::bail!(
                "all path dependencies must have a version specified \
                 when packaging.\ndependency `{}` does not specify \
                 a version.",
                dep.name_in_toml()
            )
        }
    }
    Ok(())
}
fn verify_dependencies ( pkg : & Package ) -> CargoResult < ( ) > { for dep in pkg . dependencies ( ) { if dep . source_id ( ) . is_path ( ) && ! dep . specified_req ( ) && dep . is_transitive ( ) { anyhow :: bail ! ( " \
 \n \
 " dep name_in_toml ( ) ) } } Ok ( ( ) ) }
Checks that the package dependencies are safe to deploy.
Checks that the package dependencies are safe to deploy .
pkg
&Package
pkg
&Package