From c7dfa431138a24c4cdb784b601f966d56dff8a72 Mon Sep 17 00:00:00 2001 From: Josh Lind Date: Thu, 12 Dec 2024 17:40:27 -0500 Subject: [PATCH] [Devsetup] Install the latest rust toolchain --- scripts/dev_setup.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/dev_setup.sh b/scripts/dev_setup.sh index 84763fa616aed..2fed0701bbf48 100755 --- a/scripts/dev_setup.sh +++ b/scripts/dev_setup.sh @@ -461,13 +461,9 @@ function install_toolchain { } function install_rustup_components_and_nightly { - echo "Printing the rustup version and toolchain list" - rustup --version - rustup show - rustup toolchain list -v - - echo "Updating rustup and installing rustfmt & clippy" + 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 @@ -490,6 +486,11 @@ function install_rustup_components_and_nightly { if ! rustup component add rustfmt --toolchain nightly; then echo "Failed to install rustfmt nightly using rustup." fi + + echo "Printing the rustup version and toolchain list" + rustup --version + rustup show + rustup toolchain list -v } function install_cargo_sort {