Skip to main content

workspace_root

Function workspace_root 

Source
pub fn workspace_root(env_var: &str) -> PathBuf
Expand description

Find the workspace root by checking an explicit env var, CARGO_MANIFEST_DIR, then walking up from cwd.

ยงPanics

Panics when the process working directory cannot be determined.