Skip to main content

load_graph_with_vfs

Function load_graph_with_vfs 

Source
pub fn load_graph_with_vfs(
    entry: &Path,
    no_cache: bool,
    vfs: Arc<dyn Vfs>,
) -> Result<(LoadedGraph, CacheWriteHandle), Error>
Expand description

Load a dependency graph from the given entry point using a custom VFS.

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.