Use Rust via the rustup toolchain
This commit is contained in:
parent
9f10158f6d
commit
7f99eca6c3
4 changed files with 22 additions and 4 deletions
|
|
@ -14,8 +14,6 @@ DEB_PKGS=(
|
|||
bluez
|
||||
borgbackup
|
||||
build-essential
|
||||
cargo
|
||||
cargo-doc
|
||||
catatonit
|
||||
curl
|
||||
direnv
|
||||
|
|
@ -72,8 +70,6 @@ DEB_PKGS=(
|
|||
ripgrep
|
||||
rr
|
||||
rsync
|
||||
rust-doc
|
||||
rust-llvm
|
||||
shellcheck
|
||||
slurp
|
||||
speedtest-cli
|
||||
|
|
|
|||
11
.config/setup/06-install-rust-toolchain.sh
Executable file
11
.config/setup/06-install-rust-toolchain.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#! /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
|
||||
Loading…
Add table
Add a link
Reference in a new issue