javascriptcore-sys 0.0.3

Raw bindings to the JavaScriptCore framework.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(target_os = "linux")]
extern crate pkg_config;

#[cfg(target_os = "macos")]
fn main() {
    println!("cargo:rustc-link-lib=framework=JavaScriptCore");
}

#[cfg(target_os = "linux")]
fn main() {
    pkg_config::probe_library("javascriptcoregtk-3.0").unwrap();
}

#[cfg(not(any(target_os = "macos", target_os = "linux")))]
fn main() {
    panic!("Only macOS and Linux are supported currently.");
}