pub fn get_project_root() -> Result<PathBuf>
Expand description
Get the project root (relative to closest Cargo.lock file)
match project_root::get_project_root() {
Ok(p) => println!("Current project root is {:?}", p),
Err(e) => println!("Error obtaining project root {:?}", e)
};