refactor(windows): replace winapi with windows (#3690)

This commit is contained in:
David Knaack
2022-04-21 20:59:00 +02:00
committed by GitHub
parent 6def45b751
commit 6c2b51a621
4 changed files with 107 additions and 85 deletions
+10 -1
View File
@@ -92,9 +92,18 @@ optional = true
features = ["preserve_order", "indexmap"]
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.9", features = ["winuser", "securitybaseapi", "processthreadsapi", "handleapi", "impl-default"] }
deelevate = "0.2.0"
[target.'cfg(windows)'.dependencies.windows]
version = "0.35.0"
features = [
"Win32_Foundation",
"Win32_UI_Shell",
"Win32_Security",
"Win32_System_Threading",
"Win32_Storage_FileSystem",
]
[target.'cfg(not(windows))'.dependencies]
nix = "0.23.1"