Skip to main content

discover_files

Function discover_files 

Source
pub fn discover_files(
    roots: &AnalysisRoots,
    overlay: &HashMap<PathBuf, String>,
) -> Vec<PathBuf>
Expand description

Slice A: the .bynk files these roots contain — the same discovery compile_project performs, exclude and the out/node_modules caches honoured. For enumerating a project’s units without analysing it.

overlay is consulted only for bynk.toml itself (via lower) — an AnalysisRoots::Project’s [paths] include/exclude decide what gets walked, so the caller must include a real-or-overlaid manifest entry for a non-conventional layout to enumerate correctly (content-ownership track (#1086) slice 5: this crate stays disk-free per R2.3, so it cannot fall back to reading bynk.toml itself on a miss).