pub fn chdir_workspace_root() -> Result<()>
Expand description

Change the current directory into the Cargo workspace’s root.

This is using a heuristic to find the workspace root. It considers all ancestor directories of either CARGO_MANIFEST_DIR or the current directory, and finds the leftmost one containing a Cargo.toml file.