Skip to content

Commit 20216df

Browse files
authored
Drop support for Swift 5.9 (#845)
1 parent 6023598 commit 20216df

File tree

5 files changed

+4
-14
lines changed

5 files changed

+4
-14
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
name: Unit tests
1212
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
1313
with:
14-
linux_5_9_enabled: false
1514
linux_5_10_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
1615
linux_6_0_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
1716
linux_6_1_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"

.github/workflows/pull_request.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
name: Unit tests
1515
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
1616
with:
17-
linux_5_9_enabled: true
1817
linux_5_10_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
1918
linux_6_0_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
2019
linux_6_1_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.9
1+
// swift-tools-version:5.10
22
//===----------------------------------------------------------------------===//
33
//
44
// This source file is part of the AsyncHTTPClient open source project

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Please have a look at [SECURITY.md](SECURITY.md) for AsyncHTTPClient's security
306306

307307
## Supported Versions
308308

309-
The most recent versions of AsyncHTTPClient support Swift 5.9 and newer. The minimum Swift version supported by AsyncHTTPClient releases are detailed below:
309+
The most recent versions of AsyncHTTPClient support Swift 5.10 and newer. The minimum Swift version supported by AsyncHTTPClient releases are detailed below:
310310

311311
AsyncHTTPClient | Minimum Swift Version
312312
--------------------|----------------------
@@ -317,4 +317,5 @@ AsyncHTTPClient | Minimum Swift Version
317317
`1.18.0 ..< 1.20.0` | 5.6
318318
`1.20.0 ..< 1.21.0` | 5.7
319319
`1.21.0 ..< 1.26.0` | 5.8
320-
`1.26.0 ...` | 5.9
320+
`1.26.0 ..< 1.27.0` | 5.9
321+
`1.27.0 ...` | 5.10

Sources/AsyncHTTPClient/HTTPClient+HTTPCookie.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -216,21 +216,12 @@ extension String.UTF8View.SubSequence {
216216
}
217217
}
218218

219-
#if compiler(>=5.10)
220219
nonisolated(unsafe) private let posixLocale: UnsafeMutableRawPointer = {
221220
// All POSIX systems must provide a "POSIX" locale, and its date/time formats are US English.
222221
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_05
223222
let _posixLocale = newlocale(LC_TIME_MASK | LC_NUMERIC_MASK, "POSIX", nil)!
224223
return UnsafeMutableRawPointer(_posixLocale)
225224
}()
226-
#else
227-
private let posixLocale: UnsafeMutableRawPointer = {
228-
// All POSIX systems must provide a "POSIX" locale, and its date/time formats are US English.
229-
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_05
230-
let _posixLocale = newlocale(LC_TIME_MASK | LC_NUMERIC_MASK, "POSIX", nil)!
231-
return UnsafeMutableRawPointer(_posixLocale)
232-
}()
233-
#endif
234225

235226
private func parseTimestamp(_ utf8: String.UTF8View.SubSequence, format: String) -> tm? {
236227
var timeComponents = tm()

0 commit comments

Comments
 (0)