Skip to content

Adopt Swift 6 mode #368

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

Open
wants to merge 7 commits into
base: wwdc-25
Choose a base branch
from
Open

Adopt Swift 6 mode #368

wants to merge 7 commits into from

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Jun 20, 2025

Motivation

The Swift 6 language mode adopts data-race safety by default. While Swift Crypto itself has no concurrent code, it is still useful to force us to ensure that our code is properly Sendable-correct.

Modifications

  • @unchecked Sendable on several CoW data types
  • Some necessary Sendable constraints on ECToolbox protocols
  • Add some missing protocol constraints on ARC types.

Result

Swift 6 clean.

Motivation

The Swift 6 language mode adopts data-race safety by default. While
Swift Crypto itself has no concurrent code, it is still useful to
force us to ensure that our code is properly Sendable-correct.

Modifications

- @unchecked Sendable on several CoW data types
- Some necessary Sendable constraints on ECToolbox protocols
- Add some missing protocol constraints on ARC types.

Result

Swift 6 clean.
@Lukasa Lukasa added the 🆕 semver/minor Adds new public API. label Jun 20, 2025
Copy link
Contributor

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

LGTM. You might want to switch off the 5.10 jobs as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants