mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
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:
parent
48039ed739
commit
fe2a4d8b0c
3 changed files with 100 additions and 171 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue