Skip to content

Commit

Permalink
Enable MemberImportVisibility check on all targets (#107)
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 12, 2024
1 parent 4534a63 commit 02a6f6e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,14 @@ var package = Package(

cxxLanguageStandard: .cxx11
)

// --- 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/SWIM/SWIMInstance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//

import ClusterMembership
import CoreMetrics
import Logging

import struct Dispatch.DispatchTime
Expand Down
7 changes: 7 additions & 0 deletions Sources/SWIMNIOExample/SWIMNIOHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,20 @@
//===----------------------------------------------------------------------===//

import ClusterMembership
import CoreMetrics
import Logging
import NIO
import NIOFoundationCompat
import SWIM

import struct Dispatch.DispatchTime

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif

/// `ChannelDuplexHandler` responsible for encoding/decoding SWIM messages to/from the `SWIMNIOShell`.
///
/// It is designed to work with `DatagramBootstrap`s, and the contained shell can send messages by writing `SWIMNIOSWIMNIOWriteCommand`
Expand Down
1 change: 1 addition & 0 deletions Sources/SWIMNIOExample/SWIMNIOShell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import ClusterMembership
import Logging
import Metrics
import NIO
import SWIM

Expand Down
1 change: 1 addition & 0 deletions Tests/SWIMNIOExampleTests/SWIMNIOClusteredTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import ClusterMembership
import Logging
import NIO
import SWIM
import SWIMTestKit
import XCTest

@testable import SWIMNIOExample
Expand Down

0 comments on commit 02a6f6e

Please sign in to comment.