From 75feb90b199312366d80beb0ace55341e7c342fe Mon Sep 17 00:00:00 2001 From: 21pages Date: Thu, 9 Nov 2023 16:30:22 +0800 Subject: [PATCH] fix windows build, add winapi features Signed-off-by: 21pages --- Cargo.lock | 2 +- libs/hbb_common/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 496767787..980832b5a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/libs/hbb_common/Cargo.toml b/libs/hbb_common/Cargo.toml index 773116409..a9d11a244 100644 --- a/libs/hbb_common/Cargo.toml +++ b/libs/hbb_common/Cargo.toml @@ -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"