Skip to content

Commit b990e3c

Browse files
authored
build: bump Rust toolchain to 1.97.1 (lambdaclass#542)
## Motivation The toolchain pin had drifted five releases behind upstream stable (1.92.0 → 1.97.1, released 2026-07-14). Bumping picks up compiler and clippy fixes and keeps the declared MSRV aligned with the toolchain we actually build with. ## Description Updates every real version pin: | File | Change | |---|---| | `rust-toolchain.toml` | `channel` 1.92.0 → 1.97.1 | | `Cargo.toml` | workspace `rust-version` (MSRV) 1.92.0 → 1.97.1 | | `Dockerfile` | builder base `rust:1.92-bookworm` → `rust:1.97-bookworm` | | `.github/workflows/ci.yml` | `toolchain` 1.92.0 → 1.97.1 | | `.github/actions/run-fixture-tests/action.yml` | `toolchain` 1.92.0 → 1.97.1 | | `.github/workflows/daily_loc_report.yml` | `toolchain` 1.92.0 → 1.97.1 | | `CLAUDE.md` | Quick Reference version line | | `docs/rpc.md` | node-identity sample response `rustc-v1.85.0` → `rustc-v1.97.1` | The `docs/rpc.md` string is illustrative rather than a pin, but it was two bumps stale, so it is refreshed here to keep it tracking reality. Deliberately **not** changed: - `flake.nix` and `preview-config.nix` derive the toolchain from `rust-toolchain.toml`, so they follow automatically. - `.github/workflows/pr-main_mdbook.yml` stays on `toolchain: stable`, since it only needs cargo to install `mdbook-linkcheck2` and was never pinned. - `crates/net/rpc/src/node.rs` (`rustc-v1.92.0`) is an injected test sentinel (`v9.9.9-test-deadbeef`) asserted to round-trip verbatim. It does not read the real rustc version and the test passes regardless, so it is left alone. ## Verification Run locally on `rustc 1.97.1 (8bab26f4f 2026-07-14)`: | Check | Result | |---|---| | `cargo fmt --all` | no changes | | `cargo clippy --workspace --all-targets -- -D warnings` | clean, zero new lints across the five-version jump | | `cargo test --workspace --release` | 543 passed, 0 failed, 7 ignored, 30 binaries, 0 warnings | | `Cargo.lock` churn | none | | `rust:1.97-bookworm` on Docker Hub | present (active amd64 image) | The 7 ignored tests are the pre-existing `#[ignore]` leanVM crypto tests.
1 parent 4daf481 commit b990e3c

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/actions/run-fixture-tests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ runs:
104104
- name: Setup Rust
105105
uses: dtolnay/rust-toolchain@master
106106
with:
107-
toolchain: "1.92.0"
107+
toolchain: "1.97.1"
108108

109109
- name: Setup cache
110110
uses: Swatinem/rust-cache@v2

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Rust
2727
uses: dtolnay/rust-toolchain@master
2828
with:
29-
toolchain: "1.92.0"
29+
toolchain: "1.97.1"
3030
components: rustfmt, clippy
3131

3232
- name: Setup cache

.github/workflows/daily_loc_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Setup Rust
4040
uses: dtolnay/rust-toolchain@master
4141
with:
42-
toolchain: "1.92.0"
42+
toolchain: "1.97.1"
4343

4444
- name: Setup cache
4545
uses: Swatinem/rust-cache@v2

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Not to be confused with Ethereum consensus clients AKA Beacon Chain clients AKA
66
## Quick Reference
77

88
**Main branch:** `main`
9-
**Rust version:** 1.92.0 (edition 2024)
9+
**Rust version:** 1.97.1 (edition 2024)
1010
**Test fixtures release:** Download latest production fixtures from leanSpec releases
1111

1212
## Codebase Structure (12 workspace crates)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ keywords = ["ethereum", "blockchain", "consensus", "protocol"]
2323
license = "LICENSE"
2424
readme = "README.md"
2525
repository = "https://github.com/lambdaclass/ethlambda"
26-
rust-version = "1.92.0"
26+
rust-version = "1.97.1"
2727
version = "0.1.0"
2828

2929
[workspace.dependencies]

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker.io/docker/dockerfile:1.7-labs
22

3-
FROM rust:1.92-bookworm AS chef
3+
FROM rust:1.97-bookworm AS chef
44
WORKDIR /app
55

66
# Install cargo-chef and system dependencies

docs/rpc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ The fork-choice tree from the finalized root, with LMD-GHOST weights computed ov
166166

167167
```json
168168
{
169-
"version": "ethlambda/v0.1.0-main-892ad575/x86_64-unknown-linux-gnu/rustc-v1.85.0",
169+
"version": "ethlambda/v0.1.0-main-892ad575/x86_64-unknown-linux-gnu/rustc-v1.97.1",
170170
"peer_id": "16Uiu2HAm7v1x…"
171171
}
172172
```

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.92.0"
2+
channel = "1.97.1"
33
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)