FoundationEssentials allows to import just a small subset of Foundation on non-Darwin platforms. This has a great impact on binary size. The current recommended way to do this is this pattern:
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
We need to update our generator to support this and audit all of our current Foundation imports. As a first step it would be good to understand if we rely on anything from Foundation that is not in FoundationEssentials.