Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't depend on NIOFoundationCompat in NIOTransportServices on Linux (#…
…209) Don't depend on NIOFoundationCompat in NIOTransportServices on Linux ### Motivation: I'm trying to build a small utility tool based on mqtt-nio which depends on NIOTransportServices. I noticed that NIOTransportServices depends on NIOFoundationCompat on all platforms but only imports it where the Network framework is available. Removing this dependency on non-Apple platforms allows us to not import Foundations, significantly reducing the size of the build product when using the Swift Static Linux SDK. ### Modifications: This PR and a similar one to mqtt-nio. ### Result: Hello world docker image depending on mqtt-nio went from 169MB to 85MB.
- Loading branch information