pub fn project_name(root: &Path) -> Option<Cow<'_, str>>Expand description
Return the display name for a project root path.
The returned label is derived only from the final path component. It does not read package manifests or normalize workspace names.
ยงExamples
use std::path::Path;
use what_stack::project_name;
assert_eq!(project_name(Path::new("/workspace/api")).as_deref(), Some("api"));