app rustup-toolchain-install-master

Install master rustc toolchain into rustup

9 stable releases

✓ Uses Rust 2018 edition

1.7.1 Oct 15, 2019
1.6.1 May 4, 2019
1.6.0 Dec 14, 2018
1.5.0 Nov 14, 2018
0.1.0 Jan 30, 2018

#6 in Development tools

Download history 509/week @ 2019-07-02 657/week @ 2019-07-09 435/week @ 2019-07-16 325/week @ 2019-07-23 834/week @ 2019-07-30 734/week @ 2019-08-06 998/week @ 2019-08-13 936/week @ 2019-08-20 640/week @ 2019-08-27 870/week @ 2019-09-03 523/week @ 2019-09-10 758/week @ 2019-09-17 788/week @ 2019-09-24 787/week @ 2019-10-01 502/week @ 2019-10-08

2,993 downloads per month

MIT license

449 lines


Travis status

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

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

    -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

        --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, besides the host platform

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


Install rustup, and then install from Cargo.

$ cargo install rustup-toolchain-install-master


Download a normal toolchain:

$ rustup-toolchain-install-master def3269a71be2e737cad27418a3dad9f5bd6cd32
downloading <https://rust-lang-ci2.s3-us-west-1.amazonaws.com/rustc-builds/def3269a71be2e737cad27418a3dad9f5bd6cd32/rustc-nightly-x86_64-apple-darwin.tar.xz>...
downloading <https://rust-lang-ci2.s3-us-west-1.amazonaws.com/rustc-builds/def3269a71be2e737cad27418a3dad9f5bd6cd32/rust-std-nightly-x86_64-apple-darwin.tar.xz>...
toolchain `def3269a71be2e737cad27418a3dad9f5bd6cd32` is successfully installed!

Use it:

$ rustc +def3269a71be2e737cad27418a3dad9f5bd6cd32 -vV
rustc 1.25.0-nightly (def3269a7 2018-01-30)
binary: rustc
commit-hash: def3269a71be2e737cad27418a3dad9f5bd6cd32
commit-date: 2018-01-30
host: x86_64-apple-darwin
release: 1.25.0-nightly
LLVM version: 4.0

Remove it using rustup:

$ rustup uninstall def3269a71be2e737cad27418a3dad9f5bd6cd32
info: uninstalling toolchain 'def3269a71be2e737cad27418a3dad9f5bd6cd32'
info: toolchain 'def3269a71be2e737cad27418a3dad9f5bd6cd32' uninstalled


~426K SLoC