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§
Structs§
- Build
Target - A build target in a package.
- Cycles
- Contains information about dependency cycles.
- Dependency
Req - Information about a specific kind of dependency (normal, build or dev) from a package to another package.
- Depends
Cache - An optional cache used to speed up
depends_on
queries. - DotWrite
- A write target for
Dot
graphs. Use with thewrite!
macro. - Enabled
Status - Whether a dependency or feature is required, optional, or disabled.
- Package
Graph - A graph of packages and dependencies between them, parsed from metadata returned by
cargo metadata
. - Package
Link - Represents a dependency from one package to another.
- Package
Metadata - Information about a specific package in a
PackageGraph
. - Package
Query - A query over a package graph.
- Package
Set - A set of resolved packages in a package graph.
- Workspace
- Information about a workspace, parsed from metadata returned by
cargo metadata
.
Enums§
- Build
Target Id - An identifier for a build target within a package.
- Build
Target Kind - The type of build target (library or binary).
- Dependency
Direction - The direction in which to follow dependencies.
- External
Source - More information about an external source.
- GitReq
- A
Cargo.toml
specification for a Git branch, tag, or revision. - Package
Publish - Locations that a package can be published to.
- Package
Source - The source of a package.
Traits§
- Package
DotVisitor - A visitor used for formatting
dot
graphs. - Package
Resolver - Represents whether a particular link within a package graph should be followed during a resolve operation.