Skip to main content

daemon_binary

Function daemon_binary 

Source
pub fn daemon_binary() -> PathBuf
Expand description

Path to the vs binary that should run the daemon. Resolution order:

  1. $VS_DAEMON_BIN — explicit override (tests use this).
  2. current_exe() — re-exec ourselves with vs serve. The CLI is a single binary, so this is the production path.
  3. vs on $PATH — last-resort fallback if current_exe() fails.