cargo-binstall/crates/detect-targets
Jiahao XU d72abde8e9
Fixed #704: Fix get_target_from_rustc for alpine (#705)
On Alpine, rustc returns host triple `x86_64-alpine-linux-musl`, so we
have to adopt code from
[`convert_custom_linux_target`](5519aeb5c2/build-common.rs (L1-L13)) to fix this.

* Optimize `get_target_from_rustc`: Avoid frequent String allocation

caused by `Cursor::new(stdout).lines()` which calls `BufRead::lines` and
returns `Lines` iterator, which returns `Item = io::Result<String>`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-01-16 10:57:53 +11:00
..
src Fixed #704: Fix get_target_from_rustc for alpine (#705) 2023-01-16 10:57:53 +11:00
build.rs Optimize compilation time (#320) 2022-08-27 23:27:39 +12:00
Cargo.toml release: detect-targets v0.1.4 (#683) 2023-01-10 23:12:37 +00:00
LICENSE-APACHE Refactor: Extract new crate detect-targets and improve code quality (#307) 2022-08-21 22:21:33 +10:00
LICENSE-MIT Refactor: Extract new crate detect-targets and improve code quality (#307) 2022-08-21 22:21:33 +10:00