summaryrefslogtreecommitdiff
path: root/modules/30-rust/install.sh
blob: 0c15c51ca97b786c657ea43cba44c1cbdb567d8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
_script="$(realpath ${BASH_SOURCE[0]})"
_scriptname="$(basename $_script)"
_scriptdir="$(dirname $_script)"
_modulename="$(basename $_scriptdir)"
DOT_MODULE_NAME="rustup"

function preinstall() {
	if ! [[ -x "$(command -v rustup)" ]]; then
		PACKAGES+=("rustup")
	fi
}

function install() {
	log info "installing stable rust"
	rustup install stable
	log info "installing nightly rust"
	rustup install nightly
}