Skip to content

Swift6 mode#199

Closed
heckj wants to merge 4 commits into
mainfrom
swift6-mode
Closed

Swift6 mode#199
heckj wants to merge 4 commits into
mainfrom
swift6-mode

Conversation

@heckj

@heckj heckj commented Oct 29, 2024

Copy link
Copy Markdown
Collaborator

HOLD MERGE

Hold the merge until a new version of UniFFI is released to resolve the code generation issue. The PR I submitted to fix the issue we're seeing has been accepted, but further PRs are underway for a more complete UniFFI solution to generating safe Swift6 code.

(We could merge this as is, but then anyone regenerating the code with UniFFI would need to manually update that same var to a let, which doesn't make sense)

Work in progress to enable full compilation for Automerge-swift under Swift 6 language mode.

Most of this is good and ready to go, but there's a manual change I needed to make in AutomergeUniffi/automerge.swift, which is generated by UniFFI, that needs to be resolved before we can easily make this claim.

@heckj heckj self-assigned this Oct 29, 2024
@heckj heckj changed the title DNM: Swift6 mode Swift6 mode Oct 30, 2024
@heckj

heckj commented Oct 30, 2024

Copy link
Copy Markdown
Collaborator Author

Full resolution will require that a new version of UniFFI is available, with the patch submitted that renders global variables as let instead of var: mozilla/uniffi-rs#2290

@heckj

heckj commented Nov 19, 2024

Copy link
Copy Markdown
Collaborator Author

Following up on the uniffi-rs repo and release flow, it looks like this will need to wait for the next large-ish release (0.29.x) as the required upstream changes didn't flow into the 0.28.x release branch - instead they're on the main

@heckj heckj closed this Apr 19, 2025
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