Skip to content

A sketch for an adaptors module#276

Open
glessard wants to merge 3 commits intoapple:mainfrom
glessard:adaptors-module
Open

A sketch for an adaptors module#276
glessard wants to merge 3 commits intoapple:mainfrom
glessard:adaptors-module

Conversation

@glessard
Copy link
Contributor

@glessard glessard commented Jan 6, 2026

A possible design for an adaptors module, to act as an intermediate between types defined in the package (i.e. import SystemPackage) and types defined in the toolchain (i.e. import System).

@glessard glessard force-pushed the adaptors-module branch 4 times, most recently from 5c71ebf to 6097559 Compare January 6, 2026 22:41
@glessard
Copy link
Contributor Author

glessard commented Jan 7, 2026

@swift-ci please test

@FranzBusch
Copy link
Member

I was thinking about this a bit and was wondering if you explored just simply doing a @_exported import System in this package on Darwin platforms and guard all the API out? This is similar to what swift-crypto does. AFAIK the APIs of the public SDK and this package are identical on Darwin platforms so this should be a non-API breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants