Mercurial
>
hg
>
mhoward
>
dotfiles
/ annotate
Search:
summary
shortlog
changelog
graph
tags
bookmarks
branches
files
help
file
latest
revisions
annotate
diff
comparison
raw
bin/setup-rust@22ea15db4e3d (annotated)
bin/setup-rust
Fri, 16 Aug 2019 15:12:09 -0400
author
Meredith Howard <mhoward@roomag.org>
date
Fri, 16 Aug 2019 15:12:09 -0400
changeset 783
22ea15db4e3d
parent 723
9d9fecc3ea30
permissions
-rwxr-xr-x
alias fixup
723
9d9fecc3ea30
add setup-rust
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
1
#!/bin/bash
9d9fecc3ea30
add setup-rust
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
2
set -eu -o pipefail
9d9fecc3ea30
add setup-rust
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
3
9d9fecc3ea30
add setup-rust
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
4
if rustup update; then
9d9fecc3ea30
add setup-rust
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
5
exit
9d9fecc3ea30
add setup-rust
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
6
fi
9d9fecc3ea30
add setup-rust
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
7
9d9fecc3ea30
add setup-rust
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
8
curl https://sh.rustup.rs -sSf | sh
9d9fecc3ea30
add setup-rust
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
9
source ~/.cargo/env
9d9fecc3ea30
add setup-rust
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
10
rustup component add rls rustfmt