Skip to main content

ingest_workspace

Function ingest_workspace 

Source
pub fn ingest_workspace(workspace_root: &Path) -> WorkspaceIngestResult
Expand description

Ingest all crates in a Cargo workspace.

Discovers crates by reading <workspace_root>/Cargo.toml, collects all .rs files from each crate’s src/ and tests/ directories, and ingests them in a single pass from workspace_root as the root. This ensures all CodeNode IDs are workspace-relative (e.g. crates/nusy-arrow-core/src/lib.rs::foo) and therefore globally unique across the merged graph.

If workspace_root is not a workspace root (no [workspace] key), falls back to ingesting the directory as a single crate.