Skip to main content

sources_for_roots

Function sources_for_roots 

Source
pub fn sources_for_roots(
    roots: &Roots,
) -> Result<HashMap<PathBuf, String>, DiscoveryError>
Expand description

The complete CompileOptions.sources map for a project rooted at roots.

#1081 review: this used to re-implement Roots::resolve/Roots::excludes verbatim (down to the hardcoded out/node_modules cache list) because those were private to bynk-emit. Now that they’re pub (moved to bynk-project, #1113), this calls them directly — one definition of “which files are in this project”, shared by the CLI’s own walk and compile_project’s in-memory partitioning, so the two can no longer drift.