Skip to main content

detect_install_method

Function detect_install_method 

Source
pub fn detect_install_method(
    exe: &Path,
    cargo_home: Option<&Path>,
    home: Option<&Path>,
    cargo_lists_paper: bool,
) -> InstallMethod
Expand description

Pure: decide how exe (canonicalised) was installed. cargo_lists_paper is whether $CARGO_HOME/.crates2.json/.crates.toml names paperscope.