feature(delta): automagically set delta to default git diff
[webi-installers/.git] / rustlang / install.sh
index e95f17285aa44c1cf313c91c9d89603cfa958248..1cf75bb70e8f3ebe1c356b7c095186cd3646ccf1 100644 (file)
@@ -1,30 +1,8 @@
 #!/bin/bash
 
-# title: Rust
-# homepage: https://rust-lang.org
-# tagline: The Rust Toolchain
-# description: |
-#   A language empowering everyone to build reliable and efficient software.
-#
-#   Rust is the modern language used to build all of your favorite CLI tools, such as
-#     - rg (ripgrep, modern grep)
-#     - fd (modern find)
-#     - sd (modern sed)
-#     - lsd (modern ls)
-#     - bat (modern cat)
-# examples: |
-#   ```bash
-#   cargo install ripgrep
-#   ```
-#   <br/>
-#
-#   ```bash
-#   cargo new hello --bin
-#   cargo build --release
-#   ./hello
-#   > "Hello, world!"
-#   ```
+function __install_rust() {
+    # Straight from https://rustup.rs/
+    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
+}
 
-
-# Straight from https://rustup.rs/
-curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
+__install_rust