pub fn read_bynk_tree(
root: &Path,
excludes: &[PathBuf],
) -> Result<HashMap<PathBuf, String>, DiscoveryError>Expand description
Walk root for every .bynk file (skipping excludes and hidden
directories, mirroring bynk-emit’s former discover_bynk_files exactly)
and read each one’s content. Keys are the same literal (non-canonicalised)
path shape a plain recursive walk produces — CompileOptions.sources’s own
contract, and what read_source’s overlay lookup tries first.
#3242: a subdirectory holding its own bynk.toml is another project and is
not entered, as bynk_project::discover_bynk_files does. Use
read_bynk_tree_across_projects to walk through such a directory.