dotfiles/.config/setup/06-install-rust-toolchain.sh

11 lines
315 B
Bash
Executable file

#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
tmpfile="$(mktemp)"
curl --fail --proto '=https' --show-error --silent --tlsv1.2 --output "${tmpfile}" https://sh.rustup.rs && \
sh "${tmpfile}" --no-modify-path -y && \
chmod o-rwx ~/.cargo/bin/*
rm "${tmpfile}" && \
rustup component add llvm-tools