mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
20 lines
263 B
Bash
20 lines
263 B
Bash
#
|
|
# Rust environment setup.
|
|
#
|
|
|
|
# Rustup
|
|
if [ -d "$HOME/.cargo/bin" ]; then
|
|
path_prepend "$HOME/.cargo/bin"
|
|
fi
|
|
|
|
install_rust_global_packages() {
|
|
local packages=(
|
|
rls
|
|
rust-analysis
|
|
rust-src
|
|
rustfmt
|
|
)
|
|
|
|
rustup component add "${packages[@]}"
|
|
}
|