feat: platform-specific dialog plugin (xdg-portal on Linux only)

This commit is contained in:
vicrodh committed 2026-01-12 01:22:44 -06:00
1 parent a6960769e6
commit 8257e8866b
1 file changed
+12 -1
+12 -1
View File
@@ -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" }