app_window 0.3.1

Cross-platform window library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: MPL-2.0

fn main() {
    #[cfg(target_os = "macos")]
    {
        let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
        if target_os == "macos" {
            use swift_rs::SwiftLinker;
            println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=15.0");
            SwiftLinker::new("15.0")
                .with_package("SwiftAppWindow", "SwiftAppWindow")
                .link();
        }
    }
}