pub fn file_path_to_module_name(file_path: &str) -> StringExpand description
Convert a filesystem source path into a likely module name.
Rules:
- Strip
.pmor.plsuffix - If a
lib/segment exists, use everything after the lastlib/ - Otherwise, fall back to the file stem