Skip to content

Commit 1a6eeb2

Browse files
authored
Bump Rust version to 1.88 (#7787)
In #7743, rust version was bumped: - msrv to 1.87 - `Dockerfile` to 1.88 We also need to bump the other docker images as well, and might as well keep them all consistent at 1.88.
1 parent b904956 commit 1a6eeb2

File tree

5 files changed

+10
-16
lines changed

5 files changed

+10
-16
lines changed

Dockerfile.reproducible

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Define the Rust image as an argument with a default to x86_64 Rust 1.82 image based on Debian Bullseye
2-
ARG RUST_IMAGE="rust:1.82-bullseye@sha256:ac7fe7b0c9429313c0fe87d3a8993998d1fe2be9e3e91b5e2ec05d3a09d87128"
1+
# Define the Rust image as an argument with a default to x86_64 Rust 1.88 image based on Debian Bullseye
2+
ARG RUST_IMAGE="rust:1.88-bullseye@sha256:8e3c421122bf4cd3b2a866af41a4dd52d87ad9e315fd2cb5100e87a7187a9816"
33
FROM ${RUST_IMAGE} AS builder
44

55
# Install specific version of the build dependencies

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ build-lcli-riscv64:
8989
SOURCE_DATE := $(shell git log -1 --pretty=%ct)
9090

9191
# Default image for x86_64
92-
RUST_IMAGE_AMD64 ?= rust:1.82-bullseye@sha256:ac7fe7b0c9429313c0fe87d3a8993998d1fe2be9e3e91b5e2ec05d3a09d87128
92+
RUST_IMAGE_AMD64 ?= rust:1.88-bullseye@sha256:8e3c421122bf4cd3b2a866af41a4dd52d87ad9e315fd2cb5100e87a7187a9816
9393

9494
# Reproducible build for x86_64
9595
build-reproducible-x86_64:
@@ -101,7 +101,7 @@ build-reproducible-x86_64:
101101
-t lighthouse:reproducible-amd64 .
102102

103103
# Default image for arm64
104-
RUST_IMAGE_ARM64 ?= rust:1.82-bullseye@sha256:3c1b8b6487513ad4e753d008b960260f5bcc81bf110883460f6ed3cd72bf439b
104+
RUST_IMAGE_ARM64 ?= rust:1.88-bullseye@sha256:8b22455a7ce2adb1355067638284ee99d21cc516fab63a96c4514beaf370aa94
105105

106106
# Reproducible build for aarch64
107107
build-reproducible-aarch64:

common/warp_utils/src/reject.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,9 @@ pub async fn handle_rejection(err: warp::Rejection) -> Result<impl warp::Reply,
237237
pub async fn convert_rejection<T: Reply>(res: Result<T, warp::Rejection>) -> Response {
238238
match res {
239239
Ok(response) => response.into_response(),
240-
Err(e) => match handle_rejection(e).await {
241-
Ok(reply) => reply.into_response(),
242-
// We can simplify this once Rust 1.82 is MSRV
243-
#[allow(unreachable_patterns)]
244-
Err(_) => warp::reply::with_status(
245-
warp::reply::json(&"unhandled error"),
246-
eth2::StatusCode::INTERNAL_SERVER_ERROR,
247-
)
248-
.into_response(),
249-
},
240+
Err(e) => {
241+
let Ok(reply) = handle_rejection(e).await;
242+
reply.into_response()
243+
}
250244
}
251245
}

lcli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# `lcli` requires the full project to be in scope, so this should be built either:
22
# - from the `lighthouse` dir with the command: `docker build -f ./lcli/Dockerflie .`
33
# - from the current directory with the command: `docker build -f ./Dockerfile ../`
4-
FROM rust:1.84.0-bullseye AS builder
4+
FROM rust:1.88.0-bullseye AS builder
55
RUN apt-get update && apt-get -y upgrade && apt-get install -y cmake libclang-dev
66
COPY . lighthouse
77
ARG FEATURES

lighthouse/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "7.1.0"
44
authors = ["Sigma Prime <[email protected]>"]
55
edition = { workspace = true }
66
autotests = false
7-
rust-version = "1.87.0"
7+
rust-version = "1.88.0"
88

99
# Prevent cargo-udeps from flagging the dummy package `target_check`, which exists only
1010
# to assert properties of the compilation target.

0 commit comments

Comments
 (0)