fix windows build, add winapi features

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-11-09 16:30:22 +08:00
parent fd3cb1b0eb
commit 75feb90b19
2 changed files with 2 additions and 2 deletions

2
Cargo.lock generated
View File

@ -5887,7 +5887,7 @@ dependencies = [
[[package]]
name = "sysinfo"
version = "0.29.10"
source = "git+https://github.com/GuillaumeGomez/sysinfo#f45dcc6510d48c3a1401c5a33eedccc8899f67b2"
source = "git+https://github.com/rustdesk-org/sysinfo#f45dcc6510d48c3a1401c5a33eedccc8899f67b2"
dependencies = [
"cfg-if 1.0.0",
"core-foundation-sys 0.8.4",

View File

@ -53,7 +53,7 @@ flatpak = []
protobuf-codegen = { version = "3.2" }
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["winuser"] }
winapi = { version = "0.3", features = ["winuser", "synchapi", "pdh", "memoryapi"] }
[target.'cfg(target_os = "macos")'.dependencies]
osascript = "0.3"