Skip to main content

workspace_relative_path

Function workspace_relative_path 

Source
pub fn workspace_relative_path(path: &Path) -> String
Expand description

Normalizes path to a workspace-relative (or standalone crate-relative) POSIX path matching file!() / Span::call_site().file() so AnchorKeys hash identically in nv dev (absolute paths from notify) and the compiled app.