1 2 3 4 5 6
fn main() { if cfg!(target_os = "macos") { println!("cargo:rustc-link-lib=framework=CoreHaptics"); } }