Added function for installing rust

This commit is contained in:
Marcin Woźniak 2024-04-13 22:21:25 +02:00
parent 7e06c4c886
commit 4686767a90
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -293,6 +293,14 @@ function install_kubernetes() {
fi fi
} }
function install_rust() {
if command_exists rustc; then
rustup update
else
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
fi
}
function main() { function main() {
command_start update_pip command_start update_pip
command_start install_neovim_module_for_python command_start install_neovim_module_for_python
@ -320,6 +328,7 @@ function main() {
command_start install_speedtest command_start install_speedtest
command_start install_gh_cli command_start install_gh_cli
command_start install_kubernetes command_start install_kubernetes
command_start install_rust
command_start update command_start update
} }