cargo::ops::tree::graph

Function add_pkg

source
fn add_pkg(
    graph: &mut Graph<'_>,
    resolve: &Resolve,
    resolved_features: &ResolvedFeatures,
    package_id: PackageId,
    features_for: FeaturesFor,
    target_data: &RustcTargetData<'_>,
    requested_kind: CompileKind,
    opts: &TreeOptions,
) -> usize
Expand description

Adds a single package node (if it does not already exist).

This will also recursively add all of its dependencies.

Returns the index to the package node.