Skip to main content

resolve_import_path

Function resolve_import_path 

Source
pub fn resolve_import_path(
    current_file: &Path,
    import_path: &str,
) -> Option<PathBuf>
Expand description

Resolve an import string relative to the importing file.

Returns the path as constructed so callers can compare it with their own PathBuf::join result. The module graph canonicalizes its internal keys.