Skip to content

Commit

Permalink
Enable MemberImportVisibility check on all targets (#240)
Browse files Browse the repository at this point in the history
Enable MemberImportVisibility check on all targets. Use a standard
string header and footer to bracket the new block for ease of updating
in the future with scripts.
  • Loading branch information
rnro authored Dec 13, 2024
1 parent fde9d65 commit 5c79780
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,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 --- //
1 change: 1 addition & 0 deletions Sources/NIOExtras/WritePCAPHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//
//===----------------------------------------------------------------------===//

import CNIOLinux
import Dispatch
import NIOCore

Expand Down
1 change: 1 addition & 0 deletions Sources/NIOSOCKS/Messages/SOCKSRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//
//===----------------------------------------------------------------------===//

import CNIOLinux
import NIOCore

#if canImport(Darwin)
Expand Down

0 comments on commit 5c79780

Please sign in to comment.