foundry_config::utils

Function try_find_project_root

Source
pub fn try_find_project_root(cwd: Option<&Path>) -> Result<PathBuf>
Expand description

Returns the root path to set for the project root.

Same as find_project_root, but returns an error instead of panicking.