Skip to main content

find_project_root

Function find_project_root 

Source
pub fn find_project_root(path: impl AsRef<Path>) -> Option<PathBuf>
Expand description

Finds the foundry project root by walking up from path looking for foundry.toml, bounded by the git root. Falls back to the git root if no foundry.toml is found.