pub fn workspace_root(root: &Path) -> PathBuf
The root of the workspace the project at root builds in: the folder of cargo locate-project --workspace’s manifest, else root.
root
cargo locate-project --workspace