Skip to content

[build] rust version bumps - #8912

Merged
fhanau merged 2 commits into
mainfrom
felix/aschwab/rust-capnp-bump
Nov 29, 2026
Merged

fhanau merged 2 commits into
mainfrom
felix/aschwab/rust-capnp-bump

Conversation

@fhanau

@fhanau fhanau commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Updates a bunch of outdated dependencies, including capnp. Supersedes #8902.

capnproto PR: capnproto/capnproto#2948

@fhanau
fhanau requested review from a team as code owners November 25, 2026 20:53

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of c473c3a1.

This review, of 06ae639f

✅ Approved — This is a routine dependency and toolchain bump with one consistent API adaptation in config.rs, and no issues were found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

No issues found.


🔒 Security: ✅ LGTM

No issues found.


📖 AGENTS.md: ✅ LGTM

No issues found.


📋 Code Quality: ✅ LGTM

No issues found. The capnp::Error change to error.extra() is consistent with capnp 0.28, the capnpc repo name in build/deps/rust.MODULE.bazel matches the lock, the rand feature rename fits the APIs in use, and dropping the stale compile_flags.txt include is a safe cleanup.


⚡ Performance: ✅ LGTM

No issues found. The change only bumps dependencies and tooling and does not touch any hot paths.


📝 Documentation: ✅ LGTM

No issues found.


Reviewed commit: 06ae639f

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The generated output of @cloudflare/workers-types matches the snapshot in types/generated-snapshot 🎉

@fhanau
fhanau force-pushed the felix/aschwab/rust-capnp-bump branch from 06ae639 to c473c3a Compare November 25, 2026 21:00

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of 7b5b97d3.

This review, of c473c3a1

✅ Approved — This is a routine dependency and toolchain bump with one matching capnp API change in config.rs. Since the last review, only the capnp-cpp pin and its lockfile entry changed, and the sha256, strip_prefix and URL all point to the same commit. No issues found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

No issues found.


🔒 Security: ✅ LGTM

  • The capnp-cpp archive is still pinned by sha256.
  • The rand feature rename keeps the OS randomness source.
  • The config.rs change affects only error text.

📖 AGENTS.md: ✅ LGTM

No issues found.


📋 Code Quality: ✅ LGTM

  • config.rs now uses error.extra(), which fits capnp 0.28. This is the only place in the repo that destructures capnp::Error. Other uses only format the error.
  • The rand feature rename from os_rng to sys_rng fits the rand::fill and rand::random calls in use.
  • The capnpc repo name in build/deps/rust.MODULE.bazel matches the lock.
  • Removing the stale compile_flags.txt include is safe.
  • The capnp-cpp pin's sha256, strip_prefix and URL all agree on the same commit.

⚡ Performance: ✅ LGTM

This change only bumps dependencies and tooling. It touches no hot paths.


📝 Documentation: ✅ LGTM

No issues found.


Reviewed commit: c473c3a1

@fhanau
fhanau force-pushed the felix/aschwab/rust-capnp-bump branch from c473c3a to 7b5b97d Compare November 25, 2026 21:17

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of 414b0043.

This review, of 7b5b97d3

✅ Approved — Routine dependency and toolchain bump. The only change since the last review is in config.rs: it now calls error.extra() for capnp 0.28 and adds a clippy expect that other map_err adapters in the repo also use. No issues found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

No issues found.


🔒 Security: ✅ LGTM

  • The capnp-cpp archive is still pinned by sha256.
  • The rand feature rename from os_rng to sys_rng keeps OS randomness as the source.
  • The config.rs change only affects how error text is built.

📖 AGENTS.md: ✅ LGTM

No issues found.


📋 Code Quality: ✅ LGTM

  • capnp_error in config.rs now calls error.extra() and carries #[expect(clippy::needless_pass_by_value)].
    • Other map_err adapters use the same lint expectation, for example src/workerd/server/server/services/mod.rs:141.
    • Callers pass capnp_error straight to map_err, so it has to take the error by value.
  • The lockfile entries for capnp 0.28.2, capnpc 0.28.1 and rand 0.10 are consistent with Cargo.toml and with build/deps/rust.MODULE.bazel.
  • The capnp-cpp pin's sha256, strip_prefix and URL all point to the same commit.

⚡ Performance: ✅ LGTM

This change only bumps dependencies and tooling. It touches no hot paths.


📝 Documentation: ✅ LGTM

No issues found.


Reviewed commit: 7b5b97d3

@fhanau
fhanau force-pushed the felix/aschwab/rust-capnp-bump branch from 7b5b97d to 414b004 Compare November 25, 2026 23:02

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of cdea1bfe.

This review, of 414b0043

✅ Approved — This is a routine dependency and toolchain bump. The capnp-cpp pin update is consistent across deps.MODULE.bazel and MODULE.bazel.lock, and no issues were found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

No issues found.


🔒 Security: ✅ LGTM

The capnp-cpp archive is still pinned by sha256. Renaming the rand feature keeps the OS as the source of randomness.


📖 AGENTS.md: ✅ LGTM

No issues found.


📋 Code Quality: ✅ LGTM

  • Pins and lockfiles: The capnp-cpp pin in build/deps/gen/deps.MODULE.bazel is still pinned by sha256, and its URL and strip_prefix point to the same commit. MODULE.bazel.lock matches the pin, and Cargo.toml matches build/deps/rust.MODULE.bazel.
  • rand 0.10: The rand feature that was os_rng is now sys_rng, and the existing call sites still work.
  • config.rs: capnp_error now takes the error by value, which map_err needs, so its needless_pass_by_value lint expectation is justified.
  • compile_flags.txt: The removed include path pointed to a crate that no longer exists.

⚡ Performance: ✅ LGTM

This is a dependency and toolchain bump and touches no hot paths.


📝 Documentation: ✅ LGTM

No issues found.


Reviewed commit: 414b0043

@fhanau
fhanau force-pushed the felix/aschwab/rust-capnp-bump branch from 414b004 to cdea1bf Compare November 28, 2026 18:47

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of 7199c315.

This review, of cdea1bfe

✅ Approved — This is a routine dependency and toolchain bump. The only code change since the last review is a small capnp_error update for the capnp 0.28 API, and it looks correct.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

No issues found.


🔒 Security: ✅ LGTM

The capnp-cpp archive is still pinned by sha256. The rand feature rename keeps the OS as the source of randomness.


📖 AGENTS.md: ✅ LGTM

No issues found.


📋 Code Quality: ✅ LGTM

  • Pins: deps/rust/Cargo.toml and build/deps/rust.MODULE.bazel both use capnp and capnpc 0.28. The capnp-cpp archive is still pinned by sha256.
  • config.rs: capnp_error now reads the message with error.extra() and still takes the error by value for map_err. The #[expect] explains why.

⚡ Performance: ✅ LGTM

This is a dependency and toolchain bump and touches no hot paths.


📝 Documentation: ✅ LGTM

No issues found.


Reviewed commit: cdea1bfe

@fhanau
fhanau force-pushed the felix/aschwab/rust-capnp-bump branch from cdea1bf to 7199c31 Compare November 28, 2026 18:57

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of 118c5073.

This review, of 7199c315

✅ Approved — This is a routine dependency bump and no issues were found. The capnp-cpp pin update since the last review matches in both deps.MODULE.bazel and MODULE.bazel.lock, and it is still pinned by sha256.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

No issues found.


🔒 Security: ✅ LGTM

  • capnp-cpp archive: It is still pinned by sha256 and fetched over HTTPS from the upstream repository.
  • rand features: The rename from os_rng to sys_rng keeps the OS as the source of randomness.
  • config.rs: The capnp error path still fails closed.

📖 AGENTS.md: ✅ LGTM

No issues found.


📋 Code Quality: ✅ LGTM

  • Pins: deps/rust/Cargo.toml and build/deps/rust.MODULE.bazel both use capnp and capnpc 0.28.
  • capnp-cpp archive: It moves to upstream commit c5f033d. The sha256, strip_prefix and URL change together, and MODULE.bazel.lock matches them.
  • config.rs: capnp_error now reads the message with error.extra(). It still takes the error by value so callers can pass it straight to map_err, and the #[expect] explains why.

⚡ Performance: ✅ LGTM

This is a dependency and toolchain bump. It touches no hot paths.


📝 Documentation: ✅ LGTM

No issues found.


Reviewed commit: 7199c315

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved — This is a routine dependency bump plus a test-only fix for flaky server tests, and no issues were found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

This pull request bumps dependencies only. It does not change release artifacts or the project's version.


🔒 Security: ✅ LGTM

No issues found.


📖 AGENTS.md: ✅ LGTM

No issues found.


📋 Code Quality: ✅ LGTM

  • recvWaiting(): It handles the premature byte the same way readAllAvailable() does and reads exactly as many bytes as expected, so the PUT request is read in full before the test replies.
  • Cache re-put test: The test now takes the PUT on its own subrequest with receiveSubrequest("cache-host") and replies on that connection.

⚡ Performance: ✅ LGTM

No issues found.


📝 Documentation: ✅ LGTM

No issues found.


Reviewed commit: 118c5073

@fhanau
fhanau merged commit 16276d3 into main Nov 29, 2026
24 of 25 checks passed
@fhanau
fhanau deleted the felix/aschwab/rust-capnp-bump branch November 29, 2026 00:13
@fhanau fhanau mentioned this pull request Nov 29, 2026
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.

3 participants