aboutsummaryrefslogtreecommitdiff
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
commitae0295f5ec33fc404d6da8a916c862ee00180948 (patch)
tree75671c242f5201372843412d8d19fb9c3d0f7645
parentMerge pull request #52 from Whirlsplash/renovate/tokio-1.x (diff)
downloadwhirl-ae0295f5ec33fc404d6da8a916c862ee00180948.tar.xz
whirl-ae0295f5ec33fc404d6da8a916c862ee00180948.zip
feat(vagrant): setup Rust during provisioning
-rw-r--r--Vagrantfile3
-rw-r--r--bin/rust.sh7
2 files changed, 10 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 3c90d6f..9b01149 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -118,4 +118,7 @@ Vagrant.configure("2") do |config|
# Provision SQLite
config.vm.provision "shell", path: "./bin/sqlite.sh"
+
+ # Provision Rust
+ config.vm.provision "shell", path: "./bin/rust.sh"
end
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