Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift6 mode #199

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Swift6 mode #199

wants to merge 4 commits into from

Conversation

heckj
Copy link
Collaborator

@heckj heckj commented Oct 29, 2024

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
Copy link
Collaborator Author

heckj commented Oct 30, 2024

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
Copy link
Collaborator Author

heckj commented Nov 19, 2024

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

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