Skip to content

Adopt anyAppleOS availability and drop the custom availability macro#7

Closed
rnro wants to merge 2 commits into
apple:mainfrom
rnro:availability_2
Closed

Adopt anyAppleOS availability and drop the custom availability macro#7
rnro wants to merge 2 commits into
apple:mainfrom
rnro:availability_2

Conversation

@rnro

@rnro rnro commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Adopt anyAppleOS availability and drop the custom availability macro

Replace every @available(SwiftTLS 0.1.0, *) annotation across Sources/ and Tests/ with the equivalent @available(anyAppleOS 26, *).

Drop the package-level macro plumbing this enables: the AvailabilityMacro=SwiftTLS 0.1.0:macOS 26, ... enableExperimentalFeature setting, the _OSAvailability / _Availability helpers, and the per-target availabilityMacros + prefix on swiftSettings. Adopters no longer need to know the macro name to read the source.

Future-gated declarations can use @available(anyAppleOS 10000, *) directly instead of going through the _OSAvailability.future case.

This PR also includes as a separate commit the relaxation of some overly-strict availability annotations.

rnro added 2 commits June 11, 2026 16:06
Replace every `@available(SwiftTLS 0.1.0, *)` annotation across `Sources/`
and `Tests/` with the equivalent `@available(anyAppleOS 26, *)`.

Drop the package-level macro plumbing this enables: the
`AvailabilityMacro=SwiftTLS 0.1.0:macOS 26, ...` `enableExperimentalFeature`
setting, the `_OSAvailability` / `_Availability` helpers, and the per-target
`availabilityMacros + ` prefix on `swiftSettings`. Adopters no longer need
to know the macro name to read the source.

Future-gated declarations can use `@available(anyAppleOS 10000, *)` directly
instead of going through the `_OSAvailability.future` case.

Enable the `AnyAppleOSAvailability` experimental feature on both the
`SwiftTLS` and `SwiftTLSTests` targets.
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.

1 participant