From e57d07f7d6cd216c14bd35ab5323fcdd371de464 Mon Sep 17 00:00:00 2001 From: Kingtous Date: Fri, 10 Nov 2023 11:37:30 +0800 Subject: [PATCH] fix: add missing winapi features on a fresh build --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a18a3c984..969d5aee3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -98,7 +98,7 @@ system_shutdown = "4.0" shutdown_hooks = "0.1" [target.'cfg(target_os = "windows")'.dependencies] -winapi = { version = "0.3", features = ["winuser", "wincrypt", "shellscalingapi"] } +winapi = { version = "0.3", features = ["winuser", "wincrypt", "shellscalingapi", "pdh", "synchapi", "memoryapi"] } winreg = "0.11" windows-service = "0.6" virtual_display = { path = "libs/virtual_display", optional = true } @@ -159,7 +159,7 @@ FileDescription = "RustDesk" [target.'cfg(target_os="windows")'.build-dependencies] winres = "0.1" -winapi = { version = "0.3", features = [ "winnt" ] } +winapi = { version = "0.3", features = [ "winnt", "pdh", "synchapi" ] } [build-dependencies] cc = "1.0"