rfd 0.10.0

Rusty File Dialog
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    let target = std::env::var("TARGET").unwrap();

    if target.contains("darwin") {
        println!("cargo:rustc-link-lib=framework=AppKit");
    }

    #[cfg(all(feature = "gtk3", feature = "xdg-portal"))]
    compile_error!("You can't enable both GTK3 & XDG Portal features at once");

    #[cfg(not(any(feature = "gtk3", feature = "xdg-portal")))]
    compile_error!("You need to choose at least one backend: `gtk3` or `xdg-portal` features");
}