0

我试着跑

rustup update stable

我得到以下输出。

info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2020-05-07, rust version 1.43.1 (8d69840ab 2020-05-04)
error: some components unavailable for download for channel stable: 'rust-std' for target 'i386-apple-ios', 'rust-std' for target 'armv7s-apple-ios', 'rust-std' for target 'armv7-apple-ios'
If you require these components, please install and use the latest successful build version,
which you can find at <https://rust-lang.github.io/rustup-components-history>.

After determining the correct date, install it with a command such as:

    rustup toolchain install nightly-2018-12-27

Then you can use the toolchain with commands such as:

    cargo +nightly-2018-12-27 build

虽然我可以使用安装最新的稳定工具链

rustup toolchain install stable-2020-05-07

这将创建一个单独的工具链。

rustup toolchain list
stable-2020-05-07-x86_64-unknown-linux-gnu (default)
stable-x86_64-unknown-linux-gnu
nightly-2020-05-07-x86_64-unknown-linux-gnu

我可以使用这个新的工具链作为默认工具链(就像我现在一样),但是前进会很痛苦,因为我不能只使用rustup update.

运行rustup toolchain install stable会产生相同的错误。

我怎样才能让稳定的 Rust 工具链通过 更新rustup update run

4

1 回答 1

9

Rust 团队遗憾地宣布,Rust 1.41.0(将于 2020 年 1 月 30 日发布)将是当前支持 32 位 Apple 目标的最后一个版本。从 Rust 1.42.0 开始,这些目标将降级到第 3 层。

减少对 32 位 Apple 目标的支持

您将需要使用rustup component remove. 我无法测试确切的调用,但类似于:

rustup component remove --toolchain stable --target i386-apple-ios rust-std
rustup component remove --toolchain stable --target armv7s-apple-ios rust-std
rustup component remove --toolchain stable --target armv7-apple-ios rust-std

删除后,您可以更新编译器。

于 2020-06-01T20:12:00.570 回答