Skip to content

Commit

Permalink
[Devsetup] Install the latest rust toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLind committed Dec 12, 2024
1 parent 49d6406 commit 6c2cc1b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -461,16 +461,17 @@ function install_toolchain {
}

function install_rustup_components_and_nightly {
echo "Updating rustup and installing the latest rustc, rustfmt & clippy"
rustup update
rustup toolchain install stable # Install the latest toolchain to ensure that dependencies can always be built (even if aptos-core is behind)
rustup component add rustfmt
rustup component add clippy

echo "Printing the rustup version and toolchain list"
rustup --version
rustup show
rustup toolchain list -v

echo "Updating rustup and installing rustfmt & clippy"
rustup update
rustup component add rustfmt
rustup component add clippy

# We require nightly for strict rust formatting
echo "Installing the nightly toolchain and rustfmt nightly"
if ! rustup toolchain install nightly; then
Expand Down

0 comments on commit 6c2cc1b

Please sign in to comment.