extract_module_path

Function extract_module_path 

Source
pub fn extract_module_path(source_file: &str) -> String
Expand description

Extract module path from source file relative to src/ e.g., src/main.rs -> “main”, src/foo/mod.rs -> “foo”, src/a/b/c.rs -> “a/b/c”