Files
dotfiles/shell/rust.sh

16 lines
289 B
Bash

#
# Rust environment setup.
#
# Rustup
if [ -d "$HOME/.cargo/bin" ]; then
path_prepend "$HOME/.cargo/bin"
fi
install_rust_global_packages() {
rustup component add rustfmt-preview
rustup component add rust-src
cargo +nightly install --force clippy
cargo install --force racer
}