cargo::core::compiler::output_depinfo

# Function add_deps_for_unit

Source

    fn add_deps_for_unit(
        deps: &mut BTreeSet<PathBuf>,
        build_runner: &mut BuildRunner<'_, '_>,
        unit: &Unit,
        visited: &mut HashSet<Unit>,
    ) -> CargoResult<()>

Expand description

Collects all dependencies of the `unit` for the output dep info file.

Dependencies will be stored in `deps`, including:

- dependencies from fingerprint dep-info
- paths from `rerun-if-changed` build script instruction
- …and traverse transitive dependencies recursively