get_project_root

Function get_project_root 

Source
pub fn get_project_root() -> Result<PathBuf, &'static str>
Expand description

Returns the absolute path to the cargo workspace root that built this crate.

This works only if this crate is included in a Cargo workspace. In the opposite case, it will return an error, explaining how to correctly configure the crate.