summaryrefslogtreecommitdiff
path: root/modules/30-rust/install.sh
blob: 76df8df0aec561c123186a07ab8aa587904fcb54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
_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
}