pub fn scan(
roots: &[PathBuf],
labels: &[(PathBuf, String)],
scan_depth: usize,
opts: &ScanOptions,
repo_filter: Option<&str>,
) -> (Vec<OpenLoop>, Vec<String>, Vec<(String, InventoryFile)>)Expand description
Scans all repos found under the roots in parallel.
repo_filter, when set, retains only repos whose canonical name (from dedup)
matches before open_loops runs. Individual repo failures become warnings and
never abort the scan.
Returns (loops, warnings, inventory_updates) where inventory_updates is a
vec of (hash, file) pairs ready for write-through by the caller.