Remove dep windows-dll and replace it with manual loading (#1658)

Fixed #1629

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-04-06 12:08:10 +10:00 committed by GitHub
parent 48039ed739
commit fe2a4d8b0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 100 additions and 171 deletions

View file

@ -10,9 +10,15 @@ edition = "2021"
license = "Apache-2.0 OR MIT"
[dependencies]
tokio = { version = "1.35.0", features = ["rt", "process", "sync"], default-features = false }
tokio = { version = "1.35.0", features = [
"rt",
"process",
"sync",
], default-features = false }
tracing = { version = "0.1.39", optional = true }
tracing-subscriber = { version = "0.3.17", features = ["fmt"], default-features = false, optional = true }
tracing-subscriber = { version = "0.3.17", features = [
"fmt",
], default-features = false, optional = true }
cfg-if = "1.0.0"
guess_host_triple = "0.1.3"
@ -21,8 +27,12 @@ tracing = ["dep:tracing"]
cli-logging = ["tracing", "dep:tracing-subscriber"]
[target.'cfg(target_os = "windows")'.dependencies]
windows-sys = { version = "0.52.0", features = ["Win32_System_Threading", "Win32_System_SystemInformation", "Win32_Foundation"] }
windows-dll = { version = "0.4.1", features = ["windows"], default-features = false }
windows-sys = { version = "0.52.0", features = [
"Win32_System_Threading",
"Win32_System_SystemInformation",
"Win32_Foundation",
"Win32_System_LibraryLoader",
] }
[dev-dependencies]
tokio = { version = "1.35.0", features = ["macros"], default-features = false }