Rust 货物可以';t分析url版本0.5.7的Cargo.toml

Rust 货物可以';t分析url版本0.5.7的Cargo.toml,rust,rust-cargo,Rust,Rust Cargo,我在运行货物构建时遇到问题: /usr/local/bin/cargo build--color=始终 错误:无法从源获取包 原因: 无法分析位于`/home/lzc/.multirust/toolschains/stable/cargo/registry/src/github.com-1ec6299db9ec823/url-0.5.7/cargo.toml的清单` 原因: 无法将输入解析为TOML 原因: 应为换行符,在第14行找到标识符 我在GitHub上找到了这个,但它并没有解决我的问题

我在运行货物构建时遇到问题:

/usr/local/bin/cargo build--color=始终
错误:无法从源获取包
原因:
无法分析位于`/home/lzc/.multirust/toolschains/stable/cargo/registry/src/github.com-1ec6299db9ec823/url-0.5.7/cargo.toml的清单`
原因:
无法将输入解析为TOML
原因:
应为换行符,在第14行找到标识符
我在GitHub上找到了这个,但它并没有解决我的问题

这是我的项目
Cargo.toml

[dependencies]
hyper = "0.7.2"
rustc-serialize = "0.3"
websocket = "0.15.1"
[package]

name = "url"
version = "0.5.7"
authors = [ "Simon Sapin <simon.sapin@exyr.org>" ]

description = "URL library for Rust, based on the WHATWG URL Standard"
documentation = "http://servo.github.io/rust-url/url/index.html"
repository = "https://github.com/servo/rust-url"
readme = "README.md"
keywords = ["url", "parser"]
license = "MIT/Apache-2.0"

[[test]] name = "format"                #<- line 14
[[test]] name = "form_urlencoded"
[[test]] name = "idna"
[[test]] name = "punycode"
[[test]] name = "tests"
[[test]]
name = "wpt"
harness = false

[dev-dependencies]
rustc-test = "0.1"

[features]
query_encoding = ["encoding"]
serde_serialization = ["serde"]
heap_size = ["heapsize", "heapsize_plugin"]

[dependencies.heapsize]
version = ">=0.1.1, <0.4"
optional = true

[dependencies.heapsize_plugin]
version = "0.1.0"
optional = true

[dependencies.encoding]
version = "0.2"
optional = true

[dependencies.serde]
version = ">=0.6.1, <0.8"
optional = true

[dependencies]
uuid = "0.1.17"
rustc-serialize = "0.3"
unicode-bidi = "0.2.3"
unicode-normalization = "0.1.2"
matches = "0.1"
以及我的
rustc
cargo
版本:

➜  ~ 货物-V
货运0.18.0(fe7b0cdcf 2017-04-24)
➜  ~ rustc-V
rustc 1.17.0(56124baa9 2017-04-24)
这是Cargo投诉的文件(
/home/lzc/.multirust/toolschains/stable/Cargo/registry/src/github.com-1ec6299db9ec823/url-0.5.7/Cargo.toml
):

[软件包]
name=“url”
version=“0.5.7”
作者=[“西蒙·萨宾”]
description=“Rust的URL库,基于WHATWG URL标准”
文件=”http://servo.github.io/rust-url/url/index.html"
存储库=”https://github.com/servo/rust-url"
readme=“readme.md”
关键词=[“url”,“解析器”]
license=“MIT/Apache-2.0”
[[test]]name=“format”#如中所列,它以前使用的TOML形式实际上是无效的。较新版本的Cargo不再解析该无效表单


显示的依赖项列表中没有任何内容需要url版本0.5.7。url版本0.5.10已经发布,因此执行
货物更新
切换到该版本。请注意,0.5.10是在2016年8月21日发布的,所以现在已经有将近一年的历史了。

很高兴您向我们展示了您的
货物。toml
,但这不是Cargo抱怨的问题。你能给我们看一下Cargo.toml的
Cargo无法解析吗?也许它已经被破坏了或者什么的。@MatthieuM。谢谢你的回复,我刚刚更新了我的问题。