Skip to content

Commit 6587f1d

Browse files
saiarcot895FengPan-Frank
authored andcommitted
Upgrade to Rust 1.86 for Trixie
Signed-off-by: Saikrishna Arcot <[email protected]> Signed-off-by: Feng Pan <[email protected]>
1 parent bdb306b commit 6587f1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sonic-slave-trixie/Dockerfile.j2

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ RUN curl -fsSL -o /usr/local/bin/bazel ${bazelisk_url} && chmod 755 /usr/local/b
760760

761761
# Install Rust
762762
ARG RUST_ROOT=/usr/.cargo
763-
RUN RUSTUP_HOME=$RUST_ROOT CARGO_HOME=$RUST_ROOT bash -c 'curl --proto "=https" -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.79.0 -y'
763+
RUN RUSTUP_HOME=$RUST_ROOT CARGO_HOME=$RUST_ROOT bash -c 'curl --proto "=https" -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.86.0 -y'
764764
{% if CROSS_BUILD_ENVIRON == "y" and CONFIGURED_ARCH == "armhf" %}
765765
RUN mkdir -p /.cargo && $RUST_ROOT/bin/rustup target add armv7-unknown-linux-gnueabihf && echo "[target.armv7-unknown-linux-gnueabihf]\nlinker = \"arm-linux-gnueabihf-gcc\"" >> /.cargo/config.toml
766766
{% endif -%}
@@ -770,6 +770,9 @@ RUN mkdir -p /.cargo && $RUST_ROOT/bin/rustup target add aarch64-unknown-linux-g
770770
ENV RUSTUP_HOME=$RUST_ROOT
771771
ENV PATH=$PATH:$RUST_ROOT/bin
772772

773+
# Install cargo-tarpaulin for code coverage
774+
RUN $RUST_ROOT/bin/cargo install --locked cargo-tarpaulin
775+
773776
{# Include vendor-defined rules for slave container if it exists. Contained in ../files #}
774777
{% with DEBIAN_VERSION='trixie' %}
775778
{% include 'files/sonic-slave-Dockerfile.vendor.j2' ignore missing %}

0 commit comments

Comments
 (0)