#rustup

app rustup-toolchain-install-master

Install master rustc toolchain into rustup

11 stable releases

✓ Uses Rust 2018 edition

1.7.3 Jan 5, 2020
1.7.2 Nov 17, 2019
1.7.1 Oct 15, 2019
1.6.1 May 4, 2019
0.1.0 Jan 30, 2018

#23 in Development tools

Download history 118/week @ 2020-02-09 289/week @ 2020-02-16 140/week @ 2020-02-23 42/week @ 2020-03-01 70/week @ 2020-03-08 66/week @ 2020-03-15 108/week @ 2020-03-22 68/week @ 2020-03-29 200/week @ 2020-04-05 151/week @ 2020-04-12 58/week @ 2020-04-19 39/week @ 2020-04-26 64/week @ 2020-05-03 54/week @ 2020-05-10 122/week @ 2020-05-17 276/week @ 2020-05-24

519 downloads per month

MIT license

21KB
452 lines

rustup-toolchain-install-master

Travis status

Installs compiler artifacts generated fresh from Rust's CI into rustup.

USAGE:
    rustup-toolchain-install-master [FLAGS] [OPTIONS] [--] [commits]...

FLAGS:
    -a, --alt           download the alt build instead of normal build
        --dry-run       Only log the URLs, without downloading the artifacts
    -f, --force         Replace an existing toolchain of the same name
    -h, --help          Prints help information
    -k, --keep-going    Continue downloading toolchains even if some of them failed
    -V, --version       Prints version information

OPTIONS:
        --channel <channel>              specify the channel of the commits instead of detecting it automatically
    -c, --component <components>...      additional components to install, besides rustc and rust-std
        --github-token <github-token>    An authorization token to access GitHub APIs
    -i, --host <host>                    the triples of host platform
    -n, --name <name>                    the name to call the toolchain
    -p, --proxy <proxy>                  the HTTP proxy for all download requests
    -s, --server <server>                the server path which stores the compilers [default: https://rust-lang-ci2.s3-us-west-1.amazonaws.com]
    -t, --targets <targets>...           additional target platforms to install rust-std for, besides the host platform

ARGS:
    <commits>...    full commit hashes of the rustc builds, all 40 digits are needed; if omitted, the latest master
                    commit will be installed

Installation

Install rustup, and then install from Cargo.

$ cargo install rustup-toolchain-install-master

Usage

Download a normal toolchain:

$ rustup-toolchain-install-master 10a52c25cad963986cace7a22c167363afca0d74
detecting the channel of the `10a52c25cad963986cace7a22c167363afca0d74` toolchain...
downloading <https://rust-lang-ci2.s3-us-west-1.amazonaws.com/rustc-builds/10a52c25cad963986cace7a22c167363afca0d74/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz>...
56.96 MB / 56.96 MB [=======================================] 100.00 % 10.20 MB/s
downloading <https://rust-lang-ci2.s3-us-west-1.amazonaws.com/rustc-builds/10a52c25cad963986cace7a22c167363afca0d74/rust-std-nightly-x86_64-unknown-linux-gnu.tar.xz>...
17.97 MB / 17.97 MB [=======================================] 100.00 % 9.95 MB/s
toolchain `10a52c25cad963986cace7a22c167363afca0d74` is successfully installed!

Use it:

$ rustc +10a52c25cad963986cace7a22c167363afca0d74 -vV
rustc 1.40.0-nightly (10a52c25c 2019-10-24)
binary: rustc
commit-hash: 10a52c25cad963986cace7a22c167363afca0d74
commit-date: 2019-10-24
host: x86_64-unknown-linux-gnu
release: 1.40.0-nightly
LLVM version: 9.0

Remove it using rustup:

$ rustup uninstall 10a52c25cad963986cace7a22c167363afca0d74
info: uninstalling toolchain '10a52c25cad963986cace7a22c167363afca0d74'
info: toolchain '10a52c25cad963986cace7a22c167363afca0d74' uninstalled

Dependencies

~6.5–10MB
~203K SLoC