cargo::core::compiler::unit_dependencies

# Function 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`.