Skip to main content

exe_dir_is_dev

Function exe_dir_is_dev 

Source
pub fn exe_dir_is_dev(exe_dir: &Path) -> bool
Expand description

Whether the binary in exe_dir is a source-tree build: what RuntimeMode::current_path_only answers Dev for, without building the mode. Building it finds the branch, which starts git and waits for it. A caller that only needs the yes or no must not pay for a process: the host asked through current_path_only on its UI thread at every page load, and a dev build froze for as long as git took to start (task #47585).