1 2 3 4 5 6 7 8 9
#[cfg(target_os = "macos")] fn main() { println!("cargo:rustc-link-lib=framework=JavaScriptCore"); } #[cfg(target_os = "linux")] fn main() { pkg_config::probe_library("javascriptcoregtk-4.0").unwrap(); }