Skip to main content

package_key

Function package_key 

Source
pub fn package_key(rel_path: &str, workspaces: &[Workspace]) -> String
Expand 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.