Module path_utils

Module path_utils 

Source

Functions§

apply_module_path
extract_module_path
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”
find_manifest_dir
Find the Cargo manifest directory by walking up from a given path
make_manifest_relative_path
Convert a doc path to be relative to the Cargo manifest directory from the perspective of the call site file