doomemacs/ext/setup-rust.sh

26 lines
497 B
Bash
Raw Normal View History

2016-08-28 05:01:43 +08:00
#!/usr/bin/env bash
source VARS
2016-08-28 05:01:43 +08:00
#
echo "Setting up Rust"
case "$OSTYPE" in
darwin*)
brew install rust
;;
linux*)
if is-arch; then
sudo pacman --noconfirm -S rust cargo
elif is-deb; then
echo ...
exit 1
fi
esac
2016-08-28 05:01:43 +08:00
git-repo "https://github.com/rust-lang/rust.git" "rust"
git-repo "https://github.com/phildawes/racer.git" "racer-src"
cd racer-src && cargo build --release
mv racer-src/target/release/racer ./racer