【发布时间】:2016-08-23 01:27:11
【问题描述】:
我已经下载了最新的 Rust nightly 并将这个依赖添加到 Cargo.toml:
[dependencies.http]
git = "https://github.com/chris-morgan/rust-http.git"
cargo build 出现很多错误:
...
error: aborting due to 7 previous errors
...
error: aborting due to previous error
Could not compile `regex`.
我猜这是因为某些依赖项尚未更新到最新的 rust 版本。是否可以从昨天或前一天下载每晚?
已安装的版本:
$ rustc --version
rustc 0.13.0-nightly (c89417130 2015-01-02 21:56:13 +0000)
$ cargo --version
cargo 0.0.1-pre-nightly (1a1868b 2014-12-31 21:39:41 +0000)
【问题讨论】:
-
要成为一名优秀的开源公民,我建议修复
rust-http中的编译问题并提交拉取请求。您甚至可以更改您的Cargo.toml以指向带有修复程序的分支,直到上游接受更改。 -
你不应该使用
rust-http,因为它已经过时并且完全被弃用了。请改用hyper。
标签: rust