为什么货运项目失败了?
Why is cargo project failed?
我开始用 rust 做 cargo project 并捕捉到这个警告失败...这是什么意思?在更年轻的版本中,我没有遇到这种奇怪的现象。
为什么会这样?
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 new test1 --bin
应该可以在 rust 目录中工作。
我开始用 rust 做 cargo project 并捕捉到这个警告失败...这是什么意思?在更年轻的版本中,我没有遇到这种奇怪的现象。 为什么会这样?
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 new test1 --bin
应该可以在 rust 目录中工作。