windows compile support

This commit is contained in:
2026-08-07 20:28:40 +08:00
parent a561a6fe94
commit 3b112b71da
4 changed files with 89 additions and 83 deletions
+12 -1
View File
@@ -41,7 +41,18 @@ wyd-common = { path = "../src-common" }
tokio = { version = "1.53.1", features = ["macros", "rt-multi-thread"] }
[target.'cfg(target_os = "windows")'.dependencies]
windows = "0.58"
image = { version = "0.25", default-features = false, features = ["png"] }
windows = { version = "0.58", features = [
"Win32_Foundation",
"Win32_Globalization",
"Win32_Graphics_Gdi",
"Win32_Storage_FileSystem",
"Win32_System_ProcessStatus",
"Win32_System_Threading",
"Win32_UI_Accessibility",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
] }
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.6.3"