Replace all Foundation imports with FoundationEssentials (#363)

### Motivation:

FoundationEssentials produces smaller binaries on most platforms.

### Modifications:

Where FoundationEssentials is available, import that.

### Result:

Improved binary size
This commit is contained in:
Cory Benfield authored and GitHub committed 2025-06-18 15:59:27 +01:00
1 parent b5dde9c658
commit 83a1500dac
159 files changed
+742 -3

No files matched your search

@@ -17,8 +17,12 @@
#if CRYPTOKIT_NO_ACCESS_TO_FOUNDATION
public import SwiftSystem
#else
#if canImport(FoundationEssentials)
public import FoundationEssentials
#else
public import Foundation
#endif
#endif
#if hasFeature(Embedded)
/// A type that represents a message authentication code.