Skip to main content

Module graph

Module graph 

Source
Expand description

Dependency graph data structures.

A ModuleGraph is a directed graph of source files (modules) connected by import edges. Nodes are dense u32-indexed ModuleIds, edges carry an EdgeKind distinguishing static, dynamic, and type-only imports.

Structs§

Edge
A directed import edge between two modules.
EdgeId
Dense index into ModuleGraph::edges.
Module
A single source file in the dependency graph.
ModuleGraph
A directed graph of modules connected by import edges.
ModuleId
Dense index into ModuleGraph::modules.
PackageInfo
Aggregated size and file count for a third-party package.

Enums§

EdgeKind
How an import was classified during parsing.