diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index dcafae42a..1a886b65a 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -63,7 +63,8 @@ walkdir = "2" lofty = "0.18" rusqlite = { version = "0.31", features = ["bundled"] } dirs = "5" -tauri-plugin-dialog = { version = "2.5.0", default-features = false, features = ["xdg-portal"] } + +# File dialogs - platform specific (see target dependencies below) # URL encoding urlencoding = "2" @@ -83,3 +84,13 @@ mdns-sd = "0.11" tiny_http = "0.12" rupnp = { version = "3", features = ["full_device_spec"] } futures-util = "0.3" + +# Platform-specific dependencies +[target.'cfg(target_os = "linux")'.dependencies] +tauri-plugin-dialog = { version = "2.5.0", default-features = false, features = ["xdg-portal"] } + +[target.'cfg(target_os = "macos")'.dependencies] +tauri-plugin-dialog = { version = "2.5.0" } + +[target.'cfg(target_os = "windows")'.dependencies] +tauri-plugin-dialog = { version = "2.5.0" }