Skip to main content

check_manifest

Function check_manifest 

Source
pub fn check_manifest(
    project_root: &Path,
    overlay: &HashMap<PathBuf, String>,
) -> Result<(), ProjectPathsError>
Expand description

#1665: check bynk.toml’s table set and the keys of [project] and [lsp] (MANIFEST_TABLES). Every other reader takes only its own table and ignores the rest, so an unknown table ([dependencies], a typo’d [pahts]) used to build cleanly with none of its intended behaviour.

Kept apart from try_read_project_paths_with on purpose: the CLIs call both and refuse an unknown table, while the language server reads [paths] alone and keeps serving, so an extra table can’t cost an editor its include layout. Ok when there is no bynk.toml. A manifest that doesn’t parse is ProjectPathsError::Malformed.