From b87336d33af1e71aa30f7a6331071de5c713e201 Mon Sep 17 00:00:00 2001 From: "Frederik P." Date: Sat, 7 Sep 2024 23:00:37 +0200 Subject: [PATCH] organised windows package features to workspace --- Cargo.toml | 26 ++++++++++++++++++++------ autopower_proxy/Cargo.toml | 15 +-------------- shared/Cargo.toml | 12 +----------- 3 files changed, 22 insertions(+), 31 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 221db8a..c8e3eb8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,16 +29,30 @@ codegen-units = 1 bincode = "^1.3" serde = { version = "^1.0", features = ["derive"] } serde_json = "^1.0" -windows = { version = "^0.58" } - -[dependencies] -autopower_shared = { path = "shared" } -bincode = { workspace = true } -windows = { workspace = true, features = [ +windows = { version = "^0.58", features = [ "Win32_Foundation", "Win32_System_Registry", "Win32_System_Power", "Win32_System_Services", "Win32_System_Threading", + "Win32_System_SystemServices", + "Win32_System_Diagnostics_Debug", + "Win32_System_WinRT", + "Win32_System_Pipes", + "Win32_Storage_FileSystem", + "Win32_System_IO", + "Win32_Security", + "Win32_UI_WindowsAndMessaging", + "Foundation", + "UI_Notifications", + "Data_Xml_Dom", + "Win32_System_Com", + "Win32_System_Console", + "Win32_Graphics_Gdi", ] } + +[dependencies] +autopower_shared = { path = "shared" } +bincode = { workspace = true } +windows = { workspace = true } serde = { workspace = true } diff --git a/autopower_proxy/Cargo.toml b/autopower_proxy/Cargo.toml index 85e79d2..2f88d1b 100644 --- a/autopower_proxy/Cargo.toml +++ b/autopower_proxy/Cargo.toml @@ -10,19 +10,6 @@ repository.workspace = true [dependencies] autopower_shared = { path = "../shared" } bincode = { workspace = true } -windows = { workspace = true, features = [ - "Foundation", - "UI_Notifications", - "Data_Xml_Dom", - "Win32_Foundation", - "Win32_Security", - "Win32_Storage_FileSystem", - "Win32_System_IO", - "Win32_System_Com", - "Win32_System_Console", - "Win32_Graphics_Gdi", - "Win32_System_Power", - "Win32_System_Registry", -] } +windows = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 07fb86f..dbd3f34 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -10,17 +10,7 @@ repository.workspace = true [dependencies] once_cell = "^1.18" time = { version = "^0.3", features = ["formatting"] } -windows = { workspace = true, features = [ - "Win32_System_SystemServices", - "Win32_Foundation", - "Win32_System_Diagnostics_Debug", - "Win32_System_WinRT", - "Win32_System_Pipes", - "Win32_Storage_FileSystem", - "Win32_System_IO", - "Win32_Security", - "Win32_UI_WindowsAndMessaging", -] } +windows = { workspace = true } serde_json = { workspace = true } serde = { workspace = true } bincode = { workspace = true }