Skip to content

fix(swift): avoid duplicate callback metadata in struct bridges - #2013

Merged
mrousavy merged 5 commits into
v1from
hannojg/fix-swift-struct-callback-metadata
Oct 28, 2026
Merged

mrousavy merged 5 commits into
v1from
hannojg/fix-swift-struct-callback-metadata

Conversation

@hannojg

@hannojg hannojg commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Two modules exposing the same callback signature in struct fields emit duplicate Swift metadata and fail to compile together. Repro:

Struct initializers and getters now use typed C++ value wrappers owned by each module. This gives Swift distinct types to export and avoids duplicate metadata for the shared callback and Promise specializations.

This works around swiftlang/swift#93318. Remove the wrappers once the minimum supported Xcode includes swiftlang/swift#93321.

@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
nitro-docs Skipped Skipped Oct 28, 2026 10:50am UTC

Request Review

@hannojg
hannojg marked this pull request as ready for review October 27, 2026 14:36
@mrousavy
mrousavy merged commit 4b9cc26 into v1 Oct 28, 2026
17 of 18 checks passed
hannojg added a commit that referenced this pull request Oct 28, 2026

This branch was previously deployed

1 inactive deployment
Preview — b721fc2a Deployed Oct 28, 2026 by vercel[bot]
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.

2 participants