helm/dev/rust/_init

24 lines
334 B
Plaintext
Raw Normal View History

#!/usr/bin/env zsh
source ${0:A:h}/../../deploy
source env.zsh
install() {
case $(_os) in
2018-02-17 00:03:36 -08:00
macos) brew install rustup ;;
arch) pacaur --needed --noconfirm -S rustup ;;
esac
2018-02-17 00:03:36 -08:00
rustup install stable
rustup component add rust-src
cargo install racer
}
update() {
2018-02-17 00:03:36 -08:00
rustup update
}
# link() {}
# clean() {}
init "$@"