From f74da534e488952b48bc1782468059173084d0e2 Mon Sep 17 00:00:00 2001 From: Xyan Bhatnagar Date: Wed, 25 Feb 2026 10:23:35 -0800 Subject: [PATCH 1/2] Fix issue with trait enablement In Swift code, traits are enabled by `#if `. The `$` prefix is not required on the name and actually causes the trait to not work. See https://docs.swift.org/swiftpm/documentation/packagemanagerdocs/packagetraits/#Use-traits-in-your-code --- Tests/AsyncHTTPClientTests/HTTP APIs/AHC+HTTP_Tests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/AsyncHTTPClientTests/HTTP APIs/AHC+HTTP_Tests.swift b/Tests/AsyncHTTPClientTests/HTTP APIs/AHC+HTTP_Tests.swift index 4299502f4..0779b28b9 100644 --- a/Tests/AsyncHTTPClientTests/HTTP APIs/AHC+HTTP_Tests.swift +++ b/Tests/AsyncHTTPClientTests/HTTP APIs/AHC+HTTP_Tests.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -#if compiler(>=6.2) && $ExperimentalHTTPAPIsSupport +#if compiler(>=6.2) && ExperimentalHTTPAPIsSupport import NIOCore import HTTPTypes import HTTPAPIs From 1fdb0d4dcaa382e6842edcd4711fea5dba866fe3 Mon Sep 17 00:00:00 2001 From: Xyan Bhatnagar Date: Wed, 25 Feb 2026 10:53:55 -0800 Subject: [PATCH 2/2] Remove `$` prefix from trait on ConformanceSuite as well --- Tests/ConformanceSuite/Suite.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/ConformanceSuite/Suite.swift b/Tests/ConformanceSuite/Suite.swift index 1254a924c..435b6df4a 100644 --- a/Tests/ConformanceSuite/Suite.swift +++ b/Tests/ConformanceSuite/Suite.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -#if $ExperimentalHTTPAPIsSupport +#if ExperimentalHTTPAPIsSupport import AsyncHTTPClient import HTTPAPIs import HTTPClient