blob: c68cc609a3b05205f2cd7d583e5d8a2b1d9dcb4a (
plain) (
tree)
|
|
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()
}
|