Module graph

Source
Expand description

Code for building the graph used by cargo tree.

Structsยง

Edge
Edges ๐Ÿ”’
Set of outgoing edges for a single node.
Graph
A graph of dependencies.
NodeId

Enumsยง

EdgeKind
The kind of edge, for separating dependencies into different sections.
Node

Functionsยง

add_cli_features ๐Ÿ”’
Adds nodes for features requested on the command-line for the given member.
add_feature ๐Ÿ”’
Adds a feature node between two nodes.
add_feature_rec ๐Ÿ”’
Recursively add feature nodes for all features enabled by the given feature.
add_internal_features ๐Ÿ”’
Recursively adds connections between features in the [features] table for every package.
add_pkg ๐Ÿ”’
Adds a single package node (if it does not already exist).
build
Builds the graph.