pub fn canonicalize_executable(path: impl AsRef<Path>) -> Result<PathBuf>
Calls fs_err::canonicalize on Unix. On Windows, avoids attempting to resolve symlinks but will resolve junctions if they are part of a trampoline target.
fs_err::canonicalize