_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 }