mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-05-03 07:32:29 +00:00
Drop support for Swift 5.9 (#845)
This commit is contained in:
@@ -11,7 +11,6 @@ jobs:
|
||||
name: Unit tests
|
||||
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
|
||||
with:
|
||||
linux_5_9_enabled: false
|
||||
linux_5_10_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
|
||||
linux_6_0_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
|
||||
linux_6_1_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
|
||||
|
||||
@@ -14,7 +14,6 @@ jobs:
|
||||
name: Unit tests
|
||||
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
|
||||
with:
|
||||
linux_5_9_enabled: true
|
||||
linux_5_10_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
|
||||
linux_6_0_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
|
||||
linux_6_1_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -warnings-as-errors"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:5.9
|
||||
// swift-tools-version:5.10
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This source file is part of the AsyncHTTPClient open source project
|
||||
|
||||
@@ -306,7 +306,7 @@ Please have a look at [SECURITY.md](SECURITY.md) for AsyncHTTPClient's security
|
||||
|
||||
## Supported Versions
|
||||
|
||||
The most recent versions of AsyncHTTPClient support Swift 5.9 and newer. The minimum Swift version supported by AsyncHTTPClient releases are detailed below:
|
||||
The most recent versions of AsyncHTTPClient support Swift 5.10 and newer. The minimum Swift version supported by AsyncHTTPClient releases are detailed below:
|
||||
|
||||
AsyncHTTPClient | Minimum Swift Version
|
||||
--------------------|----------------------
|
||||
@@ -317,4 +317,5 @@ AsyncHTTPClient | Minimum Swift Version
|
||||
`1.18.0 ..< 1.20.0` | 5.6
|
||||
`1.20.0 ..< 1.21.0` | 5.7
|
||||
`1.21.0 ..< 1.26.0` | 5.8
|
||||
`1.26.0 ...` | 5.9
|
||||
`1.26.0 ..< 1.27.0` | 5.9
|
||||
`1.27.0 ...` | 5.10
|
||||
|
||||
@@ -216,21 +216,12 @@ extension String.UTF8View.SubSequence {
|
||||
}
|
||||
}
|
||||
|
||||
#if compiler(>=5.10)
|
||||
nonisolated(unsafe) private let posixLocale: UnsafeMutableRawPointer = {
|
||||
// All POSIX systems must provide a "POSIX" locale, and its date/time formats are US English.
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_05
|
||||
let _posixLocale = newlocale(LC_TIME_MASK | LC_NUMERIC_MASK, "POSIX", nil)!
|
||||
return UnsafeMutableRawPointer(_posixLocale)
|
||||
}()
|
||||
#else
|
||||
private let posixLocale: UnsafeMutableRawPointer = {
|
||||
// All POSIX systems must provide a "POSIX" locale, and its date/time formats are US English.
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_05
|
||||
let _posixLocale = newlocale(LC_TIME_MASK | LC_NUMERIC_MASK, "POSIX", nil)!
|
||||
return UnsafeMutableRawPointer(_posixLocale)
|
||||
}()
|
||||
#endif
|
||||
|
||||
private func parseTimestamp(_ utf8: String.UTF8View.SubSequence, format: String) -> tm? {
|
||||
var timeComponents = tm()
|
||||
|
||||
Reference in New Issue
Block a user