cargo::core::compiler::unit_dependencies

Function deps_of

source
fn deps_of(
    unit: &Unit,
    state: &mut State<'_, '_>,
    unit_for: UnitFor,
) -> CargoResult<()>
Expand description

Compute the dependencies of a single unit, recursively computing all transitive dependencies.

The result is stored in state.unit_dependencies.