Module graph

Source
Expand description

Entry point for analyzing Cargo dependency graphs.

The main entry point for analyzing graphs is PackageGraph. See its documentation for more details.

Modules§

cargo
Simulations of Cargo behavior.
feature
Graph analysis for individual features within a package.

Structs§

BuildTarget
A build target in a package.
Cycles
Contains information about dependency cycles.
DependencyReq
Information about a specific kind of dependency (normal, build or dev) from a package to another package.
DependsCache
An optional cache used to speed up depends_on queries.
DotWrite
A write target for Dot graphs. Use with the write! macro.
EnabledStatus
Whether a dependency or feature is required, optional, or disabled.
PackageGraph
A graph of packages and dependencies between them, parsed from metadata returned by cargo metadata.
PackageLink
Represents a dependency from one package to another.
PackageMetadata
Information about a specific package in a PackageGraph.
PackageQuery
A query over a package graph.
PackageSet
A set of resolved packages in a package graph.
Workspace
Information about a workspace, parsed from metadata returned by cargo metadata.

Enums§

BuildTargetId
An identifier for a build target within a package.
BuildTargetKind
The type of build target (library or binary).
DependencyDirection
The direction in which to follow dependencies.
ExternalSource
More information about an external source.
GitReq
A Cargo.toml specification for a Git branch, tag, or revision.
PackagePublish
Locations that a package can be published to.
PackageSource
The source of a package.

Traits§

PackageDotVisitor
A visitor used for formatting dot graphs.
PackageResolver
Represents whether a particular link within a package graph should be followed during a resolve operation.