繁体   English   中英

为什么货运项目失败?

[英]Why is cargo project failed?

我开始使货物生锈,并因失败而得到警告……这是什么意思? 在更年轻的版本中,我没有遇到过这种奇怪的现象。 为什么会发生?

D:\computer_science\rust>rustc --version
rustc 1.22.1 (05e2e1c41 2017-11-22)

D:\computer_science\rust>cargo --version
cargo 0.23.0 (61fa02415 2017-11-22)

D:\computer_science\rust>cargo new simple_test --bin
warning: compiling this new crate may not work due to invalid wor
ation

failed to parse manifest at `D:\computer_science\rust\Cargo.toml`
     Created binary (application) `simple_test` project

Cargo.toml包含:

[package]
name = "simple_test"
version = "0.1.0"
authors = ["serg"]

[dependencies]

您在D:\\computer_science\\rust Cargo.toml中有一个无效的Cargo.toml 删除或修复该文件, cargo new test1 --bin在rust目录中正常运行cargo new test1 --bin

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM