sway_utils::helpers

Function find_parent_manifest_dir_with_check

Source
pub fn find_parent_manifest_dir_with_check<T: AsRef<Path>, F>(
    starter_path: T,
    check: F,
) -> Option<PathBuf>
where F: Fn(&Path) -> bool,
Expand description

Continually go up in the file tree until a Forc manifest file is found and the given predicate returns true.