Function cargo::core::compiler::unit_dependencies::new_unit_dep
source · fn new_unit_dep(
state: &State<'_, '_>,
parent: &Unit,
pkg: &Package,
target: &Target,
unit_for: UnitFor,
kind: CompileKind,
mode: CompileMode,
artifact: Option<&Artifact>
) -> CargoResult<UnitDep>
Expand description
Create a new Unit for a dependency from parent
to pkg
and target
.