Skip to main content

load_graph

Function load_graph 

Source
pub fn load_graph(
    entry: &Path,
    no_cache: bool,
) -> Result<(LoadedGraph, CacheWriteHandle), Error>
Expand description

Load a dependency graph from the given entry point.

Validates the entry path, detects the project kind, and either loads a cached graph or builds one from scratch using BFS discovery.

The returned CacheWriteHandle must be kept alive until you are done with the graph — it joins a background cache-write thread on drop.