Skip to main content

target_dir

Function target_dir 

Source
pub fn target_dir(root: &Path) -> PathBuf
Expand 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.