connect-swift
connect-swift copied to clipboard
Adoption of Swift 6 features
I'm opening an issue to track some low-hanging fruit with regard to Swift 6 features that we should explore in Connect-Swift:
- [ ] Enforcing strict concurrency: I believe all these warnings were fixed with https://github.com/connectrpc/connect-swift/pull/309, but we should switch the toolchain to Swift 6 to enforce this
- [ ] Typed
throws: Would it make sense to addthrows(ConnectError)in some places? - [ ] Utilize
packagevisibility: The files in this directory are commented as internal-only but arepublicso they can be consumed byConnectNIO. We can make thesepackageinstead once running on the updated toolchain to remove these from the public interface
We are currently blocked on fully adopting Swift 6 by https://github.com/apple/swift-protobuf/issues/1729.
https://github.com/connectrpc/connect-swift/pull/331 will allow us to compile with Swift 6