Skip to content

Commit

Permalink
organised windows package features to workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
F0903 committed Sep 7, 2024
1 parent 483cae6 commit b87336d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 31 deletions.
26 changes: 20 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
15 changes: 1 addition & 14 deletions autopower_proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
12 changes: 1 addition & 11 deletions shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

0 comments on commit b87336d

Please sign in to comment.