Skip to content

Commit a69cce6

Browse files
authored
Install rustup instead of cargo to use a newer version of rustc (#13057)
This is needed to avoid the following error while building the Cloudflare quiche library: error: package `serde_with v3.18.0` cannot be built because it requires rustc 1.88 or newer, while the currently active rustc version is 1.75.0
1 parent da065fb commit a69cce6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

contrib/docker/ubuntu/noble/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ RUN apt update \
3333
libev-dev \
3434
libevent-dev \
3535
zlib1g-dev \
36-
cargo \
36+
rustup \
3737
wget \
3838
git \
3939
libtool \
@@ -61,6 +61,8 @@ RUN apt update \
6161
libssl-dev \
6262
&& apt clean --yes
6363

64+
RUN rustup default stable
65+
6466
RUN mkdir -p ${BASE} && chmod a+rX ${BASE}
6567

6668
RUN if [ `uname -m` = "arm64" -o `uname -m` = "aarch64" ]; then echo "arm64" > /arch; else echo "amd64" > /arch; fi \

0 commit comments

Comments
 (0)