【发布时间】:2017-12-25 08:27:41
【问题描述】:
我正在关注the Rocket getting started guide 来学习 Rust 的 Rocket Web 框架。当我执行cargo run --verbose 时出现以下错误:
PS C:\Users\kin\Desktop\hello-rocket> cargo run --verbose
Updating registry `https://github.com/rust-lang/crates.io-index`
failed to parse registry's information for: serde
Caused by:
the given version requirement is invalid
系统详情
Desktop Environment: Windows 10
Cargo Version : cargo 0.8.0-nightly (28a0cbb 2016-01-17)
rustc Version : rustc 1.7.0 (a5d1e7a59 2016-02-29)
Cargo.toml
[package]
name = "hello-rocket"
version = "0.1.0"
authors = ["XXX"]
[dependencies]
rocket = "0.3.5"
rocket_codegen = "0.3.5"
【问题讨论】:
-
问这个问题最好的地方是rocket issues page。
-
什么版本的 Rust?什么版本的货物?
Cargo.toml中有什么内容?
标签: rust rust-cargo rust-rocket