Skip to main content

current_install_method

Function current_install_method 

Source
pub fn current_install_method() -> InstallMethod
Expand description

Detect the install method for the currently running executable.

Returns InstallMethod::Binary when the executable path cannot be resolved — the conservative answer, because it is the one that tells the user to run our own updater rather than a package manager command that may not apply to them.