Skip to content

Updated for Swift 6.4 - #2

Merged
colemancda merged 15 commits into
masterfrom
feature/swift-6.4
Nov 26, 2026
Merged

colemancda merged 15 commits into
masterfrom
feature/swift-6.4

Conversation

@colemancda

Copy link
Copy Markdown
Member

Updates the package for Swift 6.4 and the current Socket main.

Summary

  • Bumped swift-tools-version to 6.4 and raised platform minimums (macOS 13, iOS 16, watchOS 9, tvOS 16)
  • Updated SocketOption conformances (AddMembership/DropMembership) and NetlinkSocketAddress for the typed-throws withUnsafeBytes/withUnsafePointer protocol requirements in Socket
  • Added Sendable conformances to the public value types required by Swift 6 strict concurrency (ProcessID, NetlinkSocketProtocol, NetlinkSocketAddress, NetlinkAttributeType, NetlinkGenericCommand, NetlinkGenericMulticastGroupName, NetlinkGenericVersion)
  • Fixed the @_implementationOnly CNetlink import violation: @usableFromInline witnesses cannot reference implementation-only aliased C types; the internal CSocketAddress protocol no longer needs inlining annotations
  • Disambiguated SocketDescriptor.closeIfThrows against the new sync/async overloads with a typed-throws closure
  • Fixed the deinit self-capture in NetlinkSocket (error under Swift 6)
  • Updated CI: Swift 6.4.2 on macOS (macos-26) and swift:6.4-noble containers on Linux x86_64 and arm64; bumped ARM cross-compile workflow action versions

Testing

  • swift build and swift test pass on macOS (Swift 6.4.2 toolchain) and Linux aarch64 (swift:6.4-trixie container); all 6 unit tests pass

@colemancda
colemancda merged commit 3ee6932 into master Nov 26, 2026
4 checks passed
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