创建货物后,我在运行此货物时遇到一些问题

时间:2019-08-22 15:19:56

标签: rust rust-cargo

我在VS代码终端中使用命令(货运运行)运行货运时遇到此问题。我的电脑是32位。

我还尝试使用此命令分别运行和编译main.rs文件,但是在编译时会出现相同的错误。

error: process didn't exit successfully: `rustc -vV` (exit code: 1) --- stderr
error: 'rustc.exe' is not installed for the toolchain 'stable-i686-pc-windows-msvc'
To install, run `rustup component add rustc --toolchain stable-i686-pc-windows-msvc`

我只需要编译并运行此文件并获取所需的输出即可。

1 个答案:

答案 0 :(得分:0)

错误提示,您必须安装32位版本的Rust(您可能已经安装了推荐的64位版本)。在终端(cmd.exe)中,运行:

rustup target add i686-pc-windows-msvc