Skip to main content

current_dir

Macro current_dir 

Source
macro_rules! current_dir {
    () => { ... };
}
Expand description

Find the directory for your source file

By default, a heuristic is used.

To override the heuristic, add to $WORKSPACE_ROOT/.cargo/config.toml:

[env]
CARGO_RUSTC_CURRENT_DIR = { value = "", relative = true }