Skip to content

Conversation

@t089
Copy link
Contributor

@t089t089 commented Dec 27, 2024

This PR replaces import Foundation with import FoundationEssentials when available.

Linking Foundation on Linux comes with a significant binary size increase due to the included icu data. None of this is necessary for the HTTP client. Instead we can use FoundationEssentials to get access to the essential types like URL, Data, Date, ... without including icu data.

According to @Lukasa, sadly, this might be a semver major change. :(

@Lukasa
Copy link
Collaborator

Indeed it is. See apple/swift-crypto#317 for the full discussion.

@LukasaLukasa added the ⚠️ semver/major Breaks existing public API. label Dec 30, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ semver/majorBreaks existing public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@t089@Lukasa