在使用Intellij IDEA 2017构建一个新的Rust“来自其他来源的项目”时,我无法通过其UI运行该项目。
错误提示为:"C:/Users/sjsui/.cargo/bin/cargo.exe run error: a bin target must be available for `cargo run`",并且进程以101退出。
我注意到我的构建配置中没有提供--bin目标,因此我将项目目标文件夹的路径放置在了其中,但结果仍然相同。{{请注意保留原文中的代码格式和引用块格式}} 我尝试通过Cargo命令行界面创建一个新的Rust项目,但在运行时收到了以下错误信息:C:/Users/sjsui/.cargo/bin/cargo.exe run --bin C:\Users\sjsui\exercism\rust\hello-world\target\debug error: no bin target named C:\Users\sjsui\exercism\rust\hello-world\target\debug。显然,我必须安装Visual C++ Build Tools 2017,并正在进行此操作。这些错误是否相关或不同的问题?此外,当运行时出现以下错误:error: could not exec the linker link.exe: The system cannot find the file specified. (os error 2) note: the msvc targets depend on the msvc linker but link.exe was not found note: please ensure that VS 2013 or VS 2015 was installed with the Visual C++ option。
错误提示为:"C:/Users/sjsui/.cargo/bin/cargo.exe run error: a bin target must be available for `cargo run`",并且进程以101退出。
我注意到我的构建配置中没有提供--bin目标,因此我将项目目标文件夹的路径放置在了其中,但结果仍然相同。{{请注意保留原文中的代码格式和引用块格式}} 我尝试通过Cargo命令行界面创建一个新的Rust项目,但在运行时收到了以下错误信息:C:/Users/sjsui/.cargo/bin/cargo.exe run --bin C:\Users\sjsui\exercism\rust\hello-world\target\debug error: no bin target named C:\Users\sjsui\exercism\rust\hello-world\target\debug。显然,我必须安装Visual C++ Build Tools 2017,并正在进行此操作。这些错误是否相关或不同的问题?此外,当运行时出现以下错误:error: could not exec the linker link.exe: The system cannot find the file specified. (os error 2) note: the msvc targets depend on the msvc linker but link.exe was not found note: please ensure that VS 2013 or VS 2015 was installed with the Visual C++ option。
lib.rs
,就像你所说的一个库。 - Samuel Jenks