clipboard-native 0.1.0

Clipboard library supporting Windows, macOS, and Linux (X11 and Wayland)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    #[cfg(target_os = "windows")]
    {}
    #[cfg(target_os = "macos")]
    {
        cc::Build::new()
            .file("c_src/platform_macos.m")
            .flag("-x")
            .flag("objective-c")
            .compile("platform");

        println!("cargo:rustc-link-lib=framework=AppKit");
    }
    #[cfg(target_os = "linux")]
    {}
}