Skip to main content

resolve_include_path

Function resolve_include_path 

Source
pub fn resolve_include_path(from_file: &str, include_path: &str) -> String
Expand description

Resolve an INCLUDE path relative to the including file’s directory.

Uses string-based path manipulation (rfind('/')) rather than std::path::Path to avoid platform-specific separator issues and to work in WASM contexts. The joined path is normalized so ./.. segments collapse to a clean project-relative key (e.g. a/b/../d.inka/d.ink) — consistent across the compiler, runtime, and IDE so upward-relative includes resolve to real files.