caniuse-rs 0.4.1

A command line client for caniuse.com, written in Rust.
1
2
3
4
5
6
7
8
9
10
11
12
13
#[cfg(target_os = "macos")]
pub fn open<S: AsRef<str>>(url: S) {
    let _ = std::process::Command::new("open")
        .arg(url.as_ref())
        .output();
}

#[cfg(target_os = "linux")]
pub fn open<S: AsRef<str>>(url: S) {
    let _ = std::process::Command::new("xdg-open")
        .arg(url.as_ref())
        .output();
}