Skip to content

fix: support targets without 64-bit atomics - #1538

Open
nuzzles wants to merge 2 commits into
modelcontextprotocol:mainfrom
nuzzles:simbleau/fix-32-bit-atomics
Open

nuzzles wants to merge 2 commits into
modelcontextprotocol:mainfrom
nuzzles:simbleau/fix-32-bit-atomics

Conversation

@nuzzles

@nuzzles nuzzles commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Use AtomicU64 for request IDs, progress tokens, and worker generations where supported, with a lock-free AtomicU32 fallback. Counters on the fallback path wrap after 2³² increments. Public return types stay the same.

Fixes #1483.

Native Clippy and the library and Streamable HTTP concurrency tests passed. cargo check -p rmcp --features client,server,transport-worker passed for armv5te-unknown-linux-gnueabi.

@github-actions github-actions Bot added T-core Core library changes T-transport Transport layer changes labels Dec 1, 2026
@github-actions
github-actions Bot requested a review from connor4312 December 1, 2026 18:29
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

@connor4312 is on triage rotation this week and is the reviewer for this one.

Labels come from the PR labeler. Please review the change.

Automated triage. Labels are a first pass and the assigned maintainer has the final say.

@nuzzles
nuzzles force-pushed the simbleau/fix-32-bit-atomics branch from 68f82dd to b69cb73 Compare December 1, 2026 18:54
@nuzzles

nuzzles commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

This is ready, I just can't mark it as ready due to org policy.
cc: @DaleSeo

@nuzzles
nuzzles marked this pull request as ready for review December 1, 2026 19:42
@nuzzles
nuzzles requested a review from a team as a code owner December 1, 2026 19:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T20:34:35.029102Z 304d26f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b69cb736f0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/rmcp/src/service.rs Resolved
@nuzzles
nuzzles marked this pull request as draft December 1, 2026 20:26
@nuzzles nuzzles changed the title fix: use 32-bit atomics for request IDs and worker generations fix: support targets without 64-bit atomics Dec 1, 2026
@nuzzles
nuzzles marked this pull request as ready for review December 1, 2026 20:31
@nuzzles

nuzzles commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Ready :)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-core Core library changes T-transport Transport layer changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build fails on 32-bit archs on unsupported 8-byte atomics: Unable to resolve use target ::"std-0_0_0"::sync::atomic::AtomicU64/*?*/

1 participant