fix: scope windows-sys dependency to Windows

This commit is contained in:
Tunglies
2026-07-29 05:42:40 +08:00
parent cefcb150c9
commit 5590f6ab15
+1 -1
View File
@@ -105,7 +105,6 @@ webpki-roots = "1.0.9"
rust_iso3166 = "0.2.0"
# Use the git repo until the next release after v2.0.0.
dark-light = { git = "https://github.com/rust-dark-light/dark-light" }
windows-sys.workspace = true
bytes = "1.12.1"
tokio-util = { version = "0.7.19", features = ["time"] }
@@ -141,6 +140,7 @@ runas = "=1.2.0"
winreg = "0.56.0"
windows-service = "0.8.1"
windows = { version = "0.62.2", features = ["Win32_Globalization"] }
windows-sys.workspace = true
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-autostart = "2.5.1"