pub fn package_key(rel_path: &str, workspaces: &[Workspace]) -> StringExpand description
Map a repo-relative path to the package that owns it: the longest matching
workspace root, falling back to the top-level directory. workspaces is
expected to be sorted longest-root-first. Both the path and the workspace
roots are separator-normalized defensively, so Windows-style labels still
group correctly.