summaryrefslogtreecommitdiff
path: root/modules/30-rust
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-08-21 18:24:35 -0400
committerGalen Guyer <galen@galenguyer.com>2022-08-21 18:24:35 -0400
commitf668e009263cdafdebae3607719ae19bfd9dc249 (patch)
treeb9379edfa40b18c237eb7d38e6a2af8e0829028a /modules/30-rust
parent36fbe057d2235cbc12c3e7e85d88486d02be6c12 (diff)
begin configuration of new machine
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
+}