mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Refactor detect-targets
(#636)
* Enable dep guess_host_triple for any non-linux OS * Refactor: Rm `{windows, macos}::detect_target_*` * Refactor `detect_targets` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
0ecb30dc9d
commit
59d79d1573
4 changed files with 31 additions and 45 deletions
|
@ -13,7 +13,7 @@ license = "Apache-2.0 OR MIT"
|
|||
tokio = { version = "1.23.0", features = ["rt", "process", "sync"], default-features = false }
|
||||
cfg-if = "1.0.0"
|
||||
|
||||
[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
|
||||
[target.'cfg(not(target_os = "linux"))'.dependencies]
|
||||
guess_host_triple = "0.1.3"
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue