Skip to main content

trace_eager_import_path

Function trace_eager_import_path 

Source
pub fn trace_eager_import_path(
    graph: &RetainedModuleGraph,
    root: &Path,
    from_path: &str,
    to_path: &str,
) -> Result<ImportPathTrace, ImportPathEndpoint>
Expand description

Trace the shortest import path over eager edges only: static imports that carry a runtime value. The route explains why to_path loads before from_path runs.

ยงErrors

Returns the endpoint that did not resolve to exactly one module in the graph.