Remove `#if compiler(>=5.5)` (#161)
This commit is contained in:
parent
8fda939e1b
commit
330f4ee104
|
|
@ -48,20 +48,20 @@ declaring [SwiftNIO's Public API](https://github.com/apple/swift-nio/blob/main/d
|
|||
|
||||
### `swift-nio-transport-services ` 1.x
|
||||
|
||||
`swift-nio-transport-services` versions 1.x is part of the SwiftNIO 2 family of repositories and does not have any dependencies besides [`swift-nio`](https://github.com/apple/swift-nio), Swift 5.5, and an Apple OS supporting `Network.framework`. As the latest version, it lives on the [`main`](https://github.com/apple/swift-nio-transport-services) branch.
|
||||
`swift-nio-transport-services` versions 1.x is part of the SwiftNIO 2 family of repositories and does not have any dependencies besides [`swift-nio`](https://github.com/apple/swift-nio), Swift 5.5.2, and an Apple OS supporting `Network.framework`. As the latest version, it lives on the [`main`](https://github.com/apple/swift-nio-transport-services) branch.
|
||||
|
||||
To depend on `swift-nio-transport-services `, put the following in the `dependencies` of your `Package.swift`:
|
||||
|
||||
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.0.0"),
|
||||
|
||||
The most recent versions of SwiftNIO Transport Services support Swift 5.5 and newer. The minimum Swift version supported by SwiftNIO Transport Services releases are detailed below:
|
||||
The most recent versions of SwiftNIO Transport Services support Swift 5.5.2 and newer. The minimum Swift version supported by SwiftNIO Transport Services releases are detailed below:
|
||||
|
||||
SwiftNIO Extras | Minimum Swift Version
|
||||
--------------------|----------------------
|
||||
`1.0.0 ..< 1.11.0` | 5.0
|
||||
`1.11.0 ..< 1.12.0` | 5.2
|
||||
`1.12.0 ..< 1.15.0` | 5.4
|
||||
`1.15.0 ...` | 5.5
|
||||
`1.15.0 ...` | 5.5.2
|
||||
|
||||
### `swift-nio-transport-services ` 0.x
|
||||
|
||||
|
|
|
|||
|
|
@ -48,20 +48,20 @@ declaring [SwiftNIO's Public API](https://github.com/apple/swift-nio/blob/main/d
|
|||
|
||||
### NIO Transport Services 1.x
|
||||
|
||||
`swift-nio-transport-services` versions 1.x is part of the SwiftNIO 2 family of repositories and does not have any dependencies besides [`swift-nio`](https://github.com/apple/swift-nio), Swift 5.5, and an Apple OS supporting `Network.framework`. As the latest version, it lives on the [`main`](https://github.com/apple/swift-nio-transport-services) branch.
|
||||
`swift-nio-transport-services` versions 1.x is part of the SwiftNIO 2 family of repositories and does not have any dependencies besides [`swift-nio`](https://github.com/apple/swift-nio), Swift 5.5.2, and an Apple OS supporting `Network.framework`. As the latest version, it lives on the [`main`](https://github.com/apple/swift-nio-transport-services) branch.
|
||||
|
||||
To depend on `swift-nio-transport-services `, put the following in the `dependencies` of your `Package.swift`:
|
||||
|
||||
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.0.0"),
|
||||
|
||||
The most recent versions of SwiftNIO Transport Services support Swift 5.5 and newer. The minimum Swift version supported by SwiftNIO Transport Services releases are detailed below:
|
||||
The most recent versions of SwiftNIO Transport Services support Swift 5.5.2 and newer. The minimum Swift version supported by SwiftNIO Transport Services releases are detailed below:
|
||||
|
||||
SwiftNIO Extras | Minimum Swift Version
|
||||
--------------------|----------------------
|
||||
`1.0.0 ..< 1.11.0` | 5.0
|
||||
`1.11.0 ..< 1.12.0` | 5.2
|
||||
`1.12.0 ..< 1.14.0` | 5.4
|
||||
`1.14.0 ...` | 5.5
|
||||
`1.14.0 ...` | 5.5.2
|
||||
|
||||
### NIO Transport Services 0.x
|
||||
|
||||
|
|
|
|||
|
|
@ -119,9 +119,8 @@ public struct NIOTSClientTLSProvider: NIOClientTLSProvider {
|
|||
return bootstrap.tlsOptions(self.tlsOptions)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if swift(>=5.5) && canImport(_Concurrency) && canImport(Network)
|
||||
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
|
||||
extension NIOTSEventLoopGroup: @unchecked Sendable {}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -525,9 +525,8 @@ extension NIOTSListenerChannel {
|
|||
return SynchronousOptions(channel: self)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if swift(>=5.5) && canImport(_Concurrency) && canImport(Network)
|
||||
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
|
||||
extension NIOTSListenerChannel: @unchecked Sendable {}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -103,7 +103,6 @@ public enum NIOTSNetworkEvents {
|
|||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.6)
|
||||
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
|
||||
extension NIOTSNetworkEvents.BetterPathAvailable: Sendable {}
|
||||
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
|
||||
|
|
@ -116,6 +115,5 @@ extension NIOTSNetworkEvents.ConnectToNWEndpoint: Sendable {}
|
|||
extension NIOTSNetworkEvents.BindToNWEndpoint: Sendable {}
|
||||
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
|
||||
extension NIOTSNetworkEvents.WaitingForConnectivity: Sendable {}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue