Skip to main content

find_manifest

Function find_manifest 

Source
pub fn find_manifest(start: &Path) -> Option<PathBuf>
Expand description

The nearest bynk.toml at or above start, or None when the walk reaches the filesystem root without finding one.

The search starts at start itself when it is a directory, otherwise at its parent — so a caller can hand over either a project root or the source file being formatted. Formatting a file resolves the manifest that governs that file, not the one the shell happens to be standing in, which is what makes bynk fmt ../other-project/src/x.bynk obey the other project’s style.