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