Skip to content
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

import FoundationEssentials instead of Foundation when available #798

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

t089
Copy link
Contributor

@t089 t089 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

Lukasa commented Dec 30, 2024

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

@Lukasa Lukasa added the ⚠️ semver/major Breaks existing public API. label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ semver/major Breaks existing public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants