-
Notifications
You must be signed in to change notification settings - Fork 657
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
Can we make NIOFoundationCompat depend on FoundationEssentials? #3038
Comments
Essentially we can’t, because of the way Swift module imports leak. Until all those leaks are plugged, it is just not possible for us to ever remove an import without a semver major. |
@Lukasa On a second thought with this one: Are there really places that |
Eh, bad news, in 2021 we introduced an extension to I think this makes it a deal breaker until NIO 3.0, right? |
Hrm, @parkera is there any particularly reason JSONSerialization couldn't be moved into FoundationEssentials? |
We could do NIOFoundationEssentialsCompat. Normally I'd be opposed to doing that, but in this rare instance I think we could justify it as NIO users tend to be unusually sensitive to their usage of Foundation. |
Can we make
NIOFoundationCompat
only depend onFoundationEssentials
?Currently, unfortunately, I don't think we can as it provides convenience methods for types that are only available in full Foundation:
JSONSerialization
RunLoop
:( Would we need a
NIOEssentialsCompat
?The text was updated successfully, but these errors were encountered: