pub fn target_dir(root: &Path) -> PathBufExpand description
The folder cargo builds the project at root into: CARGO_TARGET_DIR
when it is set (from root, if relative), else target beside the
workspace’s manifest, since a project may be one folder of a bigger
workspace (cargo locate-project --workspace), else root/target.