pub fn module_key(
path: &str,
module_roots: &[String],
module_depth: usize,
) -> StringExpand description
Compute a module key from an input path.
Rules:
- Root-level files become
"(root)". - If the first directory segment is in
module_roots, include up tomodule_depthdirectory segments. - Otherwise, the module key is the first directory segment.