From 214985b2019cddd7c9433493bfbd3137e4ab80ee Mon Sep 17 00:00:00 2001 From: Rick Newton-Rogers Date: Wed, 11 Dec 2024 09:19:54 +0000 Subject: [PATCH 1/2] Enable MemberImportVisibility check on all targets --- Package.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Package.swift b/Package.swift index 56e57858..2a705995 100644 --- a/Package.swift +++ b/Package.swift @@ -189,3 +189,14 @@ let package = Package( ], targets: targets ) + +// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- // +for target in package.targets { + if target.type != .plugin { + var settings = target.swiftSettings ?? [] + // https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md + settings.append(.enableUpcomingFeature("MemberImportVisibility")) + target.swiftSettings = settings + } +} +// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- // From b0bf74ccae3e1b276def4ef89eb4fef5000d9d15 Mon Sep 17 00:00:00 2001 From: Rick Newton-Rogers Date: Wed, 11 Dec 2024 13:41:09 +0000 Subject: [PATCH 2/2] add missing imports --- Sources/NIOExtras/WritePCAPHandler.swift | 1 + Sources/NIOSOCKS/Messages/SOCKSRequest.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/Sources/NIOExtras/WritePCAPHandler.swift b/Sources/NIOExtras/WritePCAPHandler.swift index 3706e679..cab5a649 100644 --- a/Sources/NIOExtras/WritePCAPHandler.swift +++ b/Sources/NIOExtras/WritePCAPHandler.swift @@ -12,6 +12,7 @@ // //===----------------------------------------------------------------------===// +import CNIOLinux import Dispatch import NIOCore diff --git a/Sources/NIOSOCKS/Messages/SOCKSRequest.swift b/Sources/NIOSOCKS/Messages/SOCKSRequest.swift index afdcc08d..8fc9b45c 100644 --- a/Sources/NIOSOCKS/Messages/SOCKSRequest.swift +++ b/Sources/NIOSOCKS/Messages/SOCKSRequest.swift @@ -12,6 +12,7 @@ // //===----------------------------------------------------------------------===// +import CNIOLinux import NIOCore #if canImport(Darwin)