use std::path::{Path, PathBuf};
#[must_use]
pub fn workspace_root_for(crate_manifest_dir: &str) -> PathBuf {
PathBuf::from(crate_manifest_dir)
.parent()
.and_then(|path| path.parent())
.map(PathBuf::from)
.expect("workspace root")
}
#[must_use]
pub fn test_target_dir(workspace_root: &Path, name: &str) -> PathBuf {
workspace_root.join("target").join(name)
}