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 c7dfa43
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 {
Expand Down

0 comments on commit c7dfa43

Please sign in to comment.