summaryrefslogtreecommitdiff
path: root/modules/30-rust
diff options
context:
space:
mode:
Diffstat (limited to 'modules/30-rust')
-rw-r--r--modules/30-rust/install.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/30-rust/install.sh b/modules/30-rust/install.sh
new file mode 100644
index 0000000..76df8df
--- /dev/null
+++ b/modules/30-rust/install.sh
@@ -0,0 +1,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
+}