mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-05 11:40:04 +00:00
Support for other platforms in detect_targets
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
9a8b28afcf
commit
b74139f457
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@ pub async fn detect_targets() -> Vec<Box<str>> {
|
||||||
{
|
{
|
||||||
macos::detect_targets_macos()
|
macos::detect_targets_macos()
|
||||||
}
|
}
|
||||||
|
#[cfg(not(any(target_os = "linux", target_os = "macos")))]
|
||||||
|
{
|
||||||
|
vec![TARGET.into()]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue