Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
pub fn binary_exists(binary_name: &str) -> bool {
    which::which(binary_name).is_ok()
}

#[cfg(not(windows))]
pub fn env_var_is_set(env_var_name: &str) -> bool {
    std::env::var_os(env_var_name).is_some()
}