aboutsummaryrefslogtreecommitdiff
path: root/bin/rust.sh
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-07-03 00:36:49 +0000
committerFuwn <[email protected]>2021-07-03 00:36:49 +0000
commit3fc96a3f7899640ec3cc1f9c8fb914ec3c43740f (patch)
treefe5983d4f47ce5a6988cbdff2b7eabb79836bda4 /bin/rust.sh
parentMerge pull request #52 from Whirlsplash/renovate/tokio-1.x (diff)
downloadwhirl-3fc96a3f7899640ec3cc1f9c8fb914ec3c43740f.tar.xz
whirl-3fc96a3f7899640ec3cc1f9c8fb914ec3c43740f.zip
feat(vagrant): setup Rust during provisioning
Diffstat (limited to 'bin/rust.sh')
-rw-r--r--bin/rust.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/rust.sh b/bin/rust.sh
new file mode 100644
index 0000000..96c9c5d
--- /dev/null
+++ b/bin/rust.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+# https://github.com/ogham/exa/blob/dc5c42a0f240a52f5b102cf965b98ecc2bc328c2/Vagrantfile#L55
+
+echo ">>> Installing Rust"
+curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --component rustc,rust-std,cargo,clippy -y > /dev/null
+source $HOME/.cargo/env