enhance: upgrade rust version to 1.83 (#39295)

#39254

Signed-off-by: sunby <sunbingyi1992@gmail.com>
pull/36416/head
Bingyi Sun 2025-01-20 11:15:03 +08:00 committed by GitHub
parent e55d6506e3
commit cb959cd1f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 18 additions and 18 deletions

View File

@ -58,7 +58,7 @@ RUN mkdir -p /home/milvus/.vscode-server/extensions \
COPY --chown=0:0 build/docker/builder/entrypoint.sh /
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain=1.73 -y
sh -s -- --default-toolchain=1.83 -y
ENV PATH=/root/.cargo/bin:$PATH

View File

@ -45,7 +45,7 @@ RUN dnf -y update && \
RUN pip3 install conan==1.64.1
RUN mkdir -p /usr/local/go && wget -qO- "https://go.dev/dl/go1.21.11.linux-$TARGETARCH.tar.gz" | tar --strip-components=1 -xz -C /usr/local/go
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain=1.73 -y
sh -s -- --default-toolchain=1.83 -y
ENV PATH=/root/.cargo/bin:/usr/local/bin:/usr/local/go/bin:$PATH

View File

@ -53,7 +53,7 @@ RUN mkdir -p /home/milvus/.vscode-server/extensions \
COPY --chown=0:0 build/docker/builder/entrypoint.sh /
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain=1.73 -y
sh -s -- --default-toolchain=1.83 -y
ENV PATH=/root/.cargo/bin:$PATH

View File

@ -59,7 +59,7 @@ RUN mkdir -p /home/milvus/.vscode-server/extensions \
COPY --chown=0:0 build/docker/builder/entrypoint.sh /
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain=1.73 -y
sh -s -- --default-toolchain=1.83 -y
ENV PATH=/root/.cargo/bin:$PATH

View File

@ -87,7 +87,7 @@ RUN wget -O /tini https://github.com/krallin/tini/releases/download/v0.19.0/tini
chmod +x /tini
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain=1.73 -y
sh -s -- --default-toolchain=1.83 -y
ENV PATH=/root/.cargo/bin:$PATH

View File

@ -18,7 +18,7 @@ RUN mkdir -p /usr/local/go && wget -qO- "https://go.dev/dl/go1.21.11.linux-$TARG
RUN pip3 install conan==1.64.1
# Install rust
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain=1.73 -y
sh -s -- --default-toolchain=1.83 -y
ENV PATH=/root/.cargo/bin:/usr/local/bin:/usr/local/go/bin:$PATH
RUN mkdir /opt/vcpkg && \

View File

@ -18,10 +18,10 @@ set(GIT_REPOSITORY "https://github.com/apache/opendal.git")
set(GIT_TAG "v0.43.0-rc.2")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CARGO_CMD cargo +1.73 build --verbose)
set(CARGO_CMD cargo +1.83 build --verbose)
set(TARGET_DIR "debug")
else ()
set(CARGO_CMD cargo +1.73 build --release --verbose)
set(CARGO_CMD cargo +1.83 build --release --verbose)
set(TARGET_DIR "release")
endif ()

View File

@ -91,15 +91,15 @@ if command -v cargo >/dev/null 2>&1; then
unameOut="$(uname -s)"
case "${unameOut}" in
Darwin*)
echo "running on mac os, reinstall rust 1.73"
echo "running on mac os, reinstall rust 1.83"
# github will install rust 1.74 by default.
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
rustup install 1.73
rustup default 1.73;;
rustup install 1.83
rustup default 1.83;;
*)
echo "not running on mac os, no need to reinstall rust";;
esac
else
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.73 -y" || { echo 'rustup install failed'; exit 1;}
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.83 -y" || { echo 'rustup install failed'; exit 1;}
source $HOME/.cargo/env
fi

View File

@ -55,10 +55,10 @@ function install_linux_deps() {
# install rust
if command -v cargo >/dev/null 2>&1; then
echo "cargo exists"
rustup install 1.73
rustup default 1.73
rustup install 1.83
rustup default 1.83
else
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.73 -y" || { echo 'rustup install failed'; exit 1;}
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.83 -y" || { echo 'rustup install failed'; exit 1;}
source $HOME/.cargo/env
fi
}
@ -80,10 +80,10 @@ function install_mac_deps() {
# install rust
if command -v cargo >/dev/null 2>&1; then
echo "cargo exists"
rustup install 1.73
rustup default 1.73
rustup install 1.83
rustup default 1.83
else
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.73 -y" || { echo 'rustup install failed'; exit 1;}
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.83 -y" || { echo 'rustup install failed'; exit 1;}
source $HOME/.cargo/env
fi
}