我正在尝试在我的Windows机器上安装Rust调试工具。我知道我必须找出我的Rust编译器使用的GNU或MSVC工具链,但我不知道如何查找这些信息。
rustup show
查看您正在使用的工具链,其中包含平台名称。例如,在我的Windows电脑上,我可以看到以下内容:$ rustup show
Default host: x86_64-pc-windows-msvc
installed toolchains
--------------------
stable-x86_64-pc-windows-msvc (default)
nightly-x86_64-pc-windows-msvc
active toolchain
----------------
stable-x86_64-pc-windows-msvc (default)
rustc 1.26.1 (827013a31 2018-05-25)
这意味着我的活动工具链是 msvc
。
rustc --version --verbose
命令查看:PS C:\Users\IEUser> rustc --version --verbose
rustc 1.26.0 (a77568041 2018-05-07)
binary: rustc
commit-hash: a7756804103447ea4e68a71ccf071e7ad8f7a03e
commit-date: 2018-05-07
host: x86_64-pc-windows-msvc
release: 1.26.0
LLVM version: 6.0
从这里我们可以看到我已经安装了MSVC版本(host: x86_64-pc-windows-msvc
)。
另请参阅: