wasm-pack 0.9.1

📦✨ your favorite rust -> wasm workflow tool!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::path::PathBuf;

/// Get the path to an existing `safaridriver`.
///
/// We can't install `safaridriver` if an existing one is not found because
/// Apple does not provide pre-built binaries. However, `safaridriver` *should*
/// be present by default.
pub fn get_safaridriver() -> Result<PathBuf, failure::Error> {
    match which::which("safaridriver") {
        Ok(p) => Ok(p),
        Err(_) => bail!("could not find `safaridriver` on the `$PATH`"),
    }
}