Skip to main content

Module graph

Module graph 

Source

Structsยง

CurrentDepGraph ๐Ÿ”’
CurrentDepGraph stores the dependency graph for the current session. It will be populated as we run queries or tasks. We never remove nodes from the graph: they are only added.
DepGraph
DepGraphData
DepNodeColorMap ๐Ÿ”’
DepNodeIndex
EdgeIndex ๐Ÿ”’
MarkFrame ๐Ÿ”’
TaskDeps
WorkProduct
A โ€œwork productโ€ is an intermediate result that we save into the incremental directory for later re-use. The primary example are the object files that we save for each partition at code generation time.

Enumsยง

DepNodeColor ๐Ÿ”’
DesiredColor ๐Ÿ”’
The color that DepNodeColorMap::try_set_color should try to apply to a node.
QuerySideEffect
Tracks โ€˜side effectsโ€™ for a particular query. This struct is saved to disk along with the query result, and loaded from disk if we mark the query as green. This allows us to โ€˜replayโ€™ changes to global state that would otherwise only occur if we actually executed the query method.
TaskDepsRef
TrySetColorResult ๐Ÿ”’
Return value of DepNodeColorMap::try_set_color, indicating success or failure, and (on failure) what the existing color is.

Constantsยง

COMPRESSED_RED ๐Ÿ”’
COMPRESSED_UNKNOWN ๐Ÿ”’

Functionsยง

hash_result
panic_on_forbidden_read ๐Ÿ”’
print_markframe_trace ๐Ÿ”’

Type Aliasesยง

WorkProductMap