![](/img/trans.png)
[英]Why does Rust compile my project again with `cargo build --release` followed by `cargo run`?
[英]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.