diff options
Diffstat (limited to 'ci/install-component.sh')
-rwxr-xr-x | ci/install-component.sh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/ci/install-component.sh b/ci/install-component.sh deleted file mode 100755 index dbba7b1..0000000 --- a/ci/install-component.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# Install nightly Rust with a given component. -# -# If the component is unavailable on the latest nightly, -# use the latest toolchain with the component available. -# -# When using stable Rust, this script is basically unnecessary as almost components available. -# -# Refs: https://github.com/rust-lang/rustup-components-history#the-web-part - -set -euo pipefail - -package="${1:?}" -target="${2:-x86_64-unknown-linux-gnu}" - -date=$(curl -sSf https://rust-lang.github.io/rustup-components-history/"${target}"/"${package}") - -# shellcheck disable=1090 -"$(cd "$(dirname "${0}")" && pwd)"/install-rust.sh nightly-"${date}" - -rustup component add "${package}" - -case "${package}" in - rustfmt) "${package}" -V ;; - *) cargo "${package}" -V ;; -esac |