Merge pull request #6349 from 21pages/fix

fix windows build, add winapi features
This commit is contained in:
RustDesk 2023-11-09 17:11:10 +08:00 committed by GitHub
commit 959d5dd9c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"