Skip to main content

try_read_project_paths

Function try_read_project_paths 

Source
pub fn try_read_project_paths(
    project_root: &Path,
) -> Result<ProjectPaths, ProjectPathsError>
Expand description

Read bynk.toml’s [paths] section, surfacing a malformed manifest — a parse failure or an unrecognised [paths] key — as an error instead of silently falling back to the conventional layout (the previous read_project_paths total form’s behaviour, R3.8 — deleted in favour of this at all 18 of its callers, #1113).

R3.9 (#1113): [paths] include is no longer capped at one or two trees — crate::roots::Roots::trees walks every entry, so this no longer rejects a longer list.