X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=rustlang%2Finstall.sh;h=1cf75bb70e8f3ebe1c356b7c095186cd3646ccf1;hb=d68d0376b9cead7e1bf6446e71f00c8e3c965a45;hp=696fca962a9e5af41cb7639045f614d3457a5903;hpb=eeaa8db394e92b53b0031fa62b33b969366a7913;p=webi-installers%2F.git diff --git a/rustlang/install.sh b/rustlang/install.sh index 696fca9..1cf75bb 100644 --- a/rustlang/install.sh +++ b/rustlang/install.sh @@ -1,29 +1,8 @@ #!/bin/bash -# title: Rust -# homepage: https://rust-lang.org -# tagline: | -# Rust: Empowering everyone to build reliable and efficient software. -# description: | -# Rust is what C++ and D were trying to do, but didn't. It's a modern, safe, high-performance language, which also just so happens to be 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 -# ``` -#
-# -# ```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