GitXplorerGitXplorer
k

rustup-toolchain-install-master

public
74 stars
13 forks
18 issues

Commits

List of commits on branch master.
Verified
21e67dec7cc631b796aa1c91df781b5d410fb994

Merge pull request #41 from hellow554/clippy-lints

kkennytm committed 3 years ago
Unverified
981459141b0b9f7da441a0b9222f8ea2378a0b98

apply clippy lints

hhellow554 committed 3 years ago
Verified
ee56fff0f4d79bbcf58e048891fe6b7fe88952aa

Sync README

kkennytm committed 5 years ago
Verified
3ab630cc30123a5506be5ffd16f2645999edde2d

Replaced 'failure' by 'anyhow'

kkennytm committed 5 years ago
Verified
b791498cf3f08a63be52ac33ba6b74c474549c7c

Merge pull request #38 from Mark-Simulacrum/cdn

kkennytm committed 5 years ago
Unverified
b2ab69291c33cc8f77cd9b3b4e6d088d47fb0880

Use CDN to download artifacts

MMark-Simulacrum committed 5 years ago

README

The README file for this repository.

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://ci-artifacts.rust-lang.org]
    -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 4fb54ed484e2239a3e9eff3be17df00d2a162be3
detecting the channel of the `4fb54ed484e2239a3e9eff3be17df00d2a162be3` toolchain...
downloading <https://ci-artifacts.rust-lang.org/rustc-builds/4fb54ed484e2239a3e9eff3be17df00d2a162be3/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz>...
47.39 MB / 47.39 MB [=======================================] 100.00 % 10.20 MB/s
downloading <https://ci-artifacts.rust-lang.org/rustc-builds/4fb54ed484e2239a3e9eff3be17df00d2a162be3/rust-std-nightly-x86_64-unknown-linux-gnu.tar.xz>...
15.91 MB / 15.91 MB [=======================================] 100.00 % 9.95 MB/s
toolchain `4fb54ed484e2239a3e9eff3be17df00d2a162be3` is successfully installed!

Use it:

$ rustc +4fb54ed484e2239a3e9eff3be17df00d2a162be3 -vV
rustc 1.46.0-nightly (4fb54ed48 2020-06-14)
binary: rustc
commit-hash: 4fb54ed484e2239a3e9eff3be17df00d2a162be3
commit-date: 2020-06-14
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0

Remove it using rustup:

$ rustup uninstall 4fb54ed484e2239a3e9eff3be17df00d2a162be3
info: uninstalling toolchain '4fb54ed484e2239a3e9eff3be17df00d2a162be3'
info: toolchain '4fb54ed484e2239a3e9eff3be17df00d2a162be3' uninstalled