Skip to content

WEB3-645: chore: declare rust-version 1.94 and bump docs nightly - #135

Open
Wollac wants to merge 3 commits into
mainfrom
chore/msrv-1.94
Open

WEB3-645: chore: declare rust-version 1.94 and bump docs nightly#135
Wollac wants to merge 3 commits into
mainfrom
chore/msrv-1.94

Conversation

@Wollac

@Wollac Wollac commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Small fixes found during the v3.0.0 release prep (#134 / release-3.0), ported to main:

  • Declare rust-version = "1.94" in risc0-steel and risc0-op-steel. The workspace toolchain is already 1.94 and the op-alloy/op-revm dependency stack hard-requires rustc 1.94, but the crates still declared the stale 1.88. Consumers on an older toolchain currently get a confusing dependency-level error instead of cargo's clean "package requires rustc 1.94" message.
  • Bump the docs nightly nightly-2025-10-30nightly-2026-06-01 in the docs-rs CI job and the documentation workflow. The old pin identifies as rustc 1.93.0-nightly, which cargo rejects the moment the crates declare rust-version = "1.94" — this is exactly the failure the release-3.0 CI hit, and main would hit it at release-prep time otherwise. (Main currently passes only because the under-declared 1.88 lets the stale nightly through the MSRV check.)
  • Add a compile-time check that OpHeader stays the Optimism network header type. The guest-side OpHeader is alloy_consensus::Header directly, to keep op-alloy-network (whose alloy-provider dependency is mandatory) out of guest builds — but nothing tied it to <Optimism as Network>::Header, which upstream currently defines as exactly this type. A host-gated assertion function now makes the build fail loudly if the OP-Stack ever introduces a distinct header type, instead of silently diverging.

Also extends the existing CHANGELOG line about the 1.94 toolchain bump to mention the MSRV declaration.

The workspace toolchain is already 1.94 and the op-alloy/op-revm
dependency stack hard-requires rustc 1.94, but the crates still
declared rust-version = "1.88". Consumers on an older toolchain got a
confusing dependency error instead of cargo's clean "requires rustc
1.94" message. Declare the real MSRV.

This in turn requires bumping the docs nightly: nightly-2025-10-30
identifies as rustc 1.93.0-nightly, which cargo rejects once the
crates declare rust-version = "1.94". This was found during the
v3.0.0 release prep (release-3.0), which hit exactly this failure in
the docs-rs job.
@Wollac
Wollac requested review from a team and capossele as code owners June 10, 2026 10:31
@github-actions github-actions Bot changed the title chore: declare rust-version 1.94 and bump docs nightly WEB3-645: chore: declare rust-version 1.94 and bump docs nightly Jun 10, 2026
@linear

linear Bot commented Jun 10, 2026

Copy link
Copy Markdown

WEB3-645

Wollac added 2 commits June 10, 2026 12:50
The guest-side OpHeader is alloy_consensus::Header directly, to keep
op-alloy-network (and its mandatory alloy-provider dependency) out of
guest builds. Upstream currently defines
<Optimism as Network>::Header as exactly this type. Add a host-gated
compile-time check so that, should the OP-Stack ever introduce a
distinct header type, the build fails here instead of silently
diverging from the network type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant