是否可以下载以前的每晚构建? [英] Is it possible to download previous nightly builds?
问题描述
我每晚都下载了最新的 Rust 并将此依赖项添加到 Cargo.toml:
I have downloaded the latest Rust nightly and added this dependency to Cargo.toml:
[dependencies.http]
git = "https://github.com/chris-morgan/rust-http.git"
我在 cargo build
中遇到很多错误:
I'm getting lots of errors for cargo build
:
...
error: aborting due to 7 previous errors
...
error: aborting due to previous error
Could not compile `regex`.
我猜这是因为某些依赖项还没有更新到最新的 Rust 版本.昨天或前天的每晚都可以下载吗?
I guess this is because some dependencies have not been updated to the latest rust version. Is it possible to download the nightly from yesterday or the day before?
已安装的版本:
$ 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)
推荐答案
如果您正在使用 rustup(当前首选的安装 Rust 的方式):
If you are using rustup (the currently preferred manner of installing Rust):
rustup install nightly-2016-06-03
如果您想使用独立的 Rust 安装程序,则保留以前的版本.来自这个 Reddit thread,链接到这个 Rust 问题:
If you want to use the standalone Rust installers, previous versions are kept. From this Reddit thread, which links to this Rust issue:
他们是正式托管的.
wget https://static.rust-lang.org/dist/2014-12-08/rust-nightly-x86_64-apple-darwin.pkg
wget https://static.rust-lang.org/dist/2014-12-12/rust-nightly-x86_64-unknown-linux-gnu.tar.gz
如果你还在使用 rustup.sh(不是 .rs),你应该可以使用类似的东西:
If you are still using rustup.sh (not .rs), you should be able to use something like:
rustup.sh --channel=nightly --date=2016-06-03
这篇关于是否可以下载以前的每晚构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!