我正在按照Rocket 入门指南学习 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)
货运.toml
[package]
name = "hello-rocket"
version = "0.1.0"
authors = ["XXX"]
[dependencies]
rocket = "0.3.5"
rocket_codegen = "0.3.5"