get_workspace_root_path

Function get_workspace_root_path 

Source
pub fn get_workspace_root_path() -> PathBuf
Expand description

Returns the workspace root directory path.

This is the directory containing the top-level Cargo.toml with the [workspace] section, typically where pyproject.toml and docs/ are located.

ยงPanics

Panics if the CARGO_MANIFEST_DIR environment variable is not set or the parent directories cannot be determined.