ubuntu - 在 rustup show 中未显示事件工具链的已安装目标

标签 ubuntu rust

在我的 ubuntu 20.04 rustup show 上运行此命令时,这是结果image 1
如何查看像这样的事件工具链的已安装目标?
image 2

最佳答案

Rustup 只会在有多个可用部分时显示部分。例如,如果您只有一个工具链,stable ,和一个目标,x86_64-unknown-linux-gnu ,这就是你所看到的:

> rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/kmdreko/.rustup

stable-x86_64-unknown-linux-gnu (default)
rustc 1.61.0 (fe5b13d68 2022-05-18)
但是如果你有两个可用的目标,比如你跑了 rustup target add wasm32-unknown-unknown ,然后您会看到“事件工具链的已安装目标”部分:
> rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/kmdreko/.rustup

installed targets for active toolchain
--------------------------------------

wasm32-unknown-unknown
x86_64-unknown-linux-gnu

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.61.0 (fe5b13d68 2022-05-18)
如果你有两个可用的工具链,就像你一样,然后运行 ​​rustup toolchain add nightly ,然后您还会看到“已安装的工具链”部分:
> rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/kmdreko/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu

installed targets for active toolchain
--------------------------------------

wasm32-unknown-unknown
x86_64-unknown-linux-gnu

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.61.0 (fe5b13d68 2022-05-18)

关于ubuntu - 在 rustup show 中未显示事件工具链的已安装目标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72437113/

相关文章:

linux - 在 Ubuntu 中使用 iptables -P INPUT DROP 后,如何应用我的附加规则?

rust - 如何消除委托(delegate)给HashMap迭代器时的 "expected &T, found type parameter"错误?

memory - 无法移出带有作为参数传递的可选成员的借用内容

rust - 在Rust中,我创建了一个impl返回类型,可以将其作为参数传递。但是我没有找到将其存储在Struct中的方法吗?

rust - 我如何消除 Rust 中的特征歧义?

node.js - 安装 Node 模块时 node-gyp 重建错误

c++ - 如何在ros ubuntu中更改包中库的目录

linux - 使用 env 变量指定 makefile

amazon-web-services - 在 AWS Ubuntu EC2 上部署 Dockerized MERN 应用程序。我需要 NGINX 或类似技术吗?

regex - 如何在字节上使用 Rust 正则表达式(Vec<u8> 或 &[u8])?