mirror of
https://github.com/apple/swift-http-types
synced 2026-11-25 04:47:48 +00:00
Motivation: Swift 6.0 is no longer supported, we should bump the tools version and remove it from our CI. Modifications: * Bump the Swift tools version to Swift 6.1 * Remove Swift 6.0 jobs where appropriate in main.yml, pull_request.yml Result: Code reflects our support window. --------- Co-authored-by: Guoye Zhang <guoye_zhang@apple.com>
55 lines
1.6 KiB
Swift
55 lines
1.6 KiB
Swift
// swift-tools-version:6.1
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-http-types",
|
|
products: [
|
|
.library(name: "HTTPTypes", targets: ["HTTPTypes"]),
|
|
.library(name: "HTTPTypesFoundation", targets: ["HTTPTypesFoundation"]),
|
|
],
|
|
targets: [
|
|
.target(name: "HTTPTypes"),
|
|
.target(
|
|
name: "HTTPTypesFoundation",
|
|
dependencies: [
|
|
"HTTPTypes"
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "HTTPTypesTests",
|
|
dependencies: [
|
|
"HTTPTypes"
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "HTTPTypesFoundationTests",
|
|
dependencies: [
|
|
"HTTPTypesFoundation"
|
|
]
|
|
),
|
|
]
|
|
)
|
|
|
|
for target in package.targets {
|
|
var settings = target.swiftSettings ?? []
|
|
settings.append(.enableExperimentalFeature("StrictConcurrency=complete"))
|
|
target.swiftSettings = settings
|
|
}
|
|
|
|
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
|
|
for target in package.targets {
|
|
switch target.type {
|
|
case .regular, .test, .executable:
|
|
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
|
|
case .macro, .plugin, .system, .binary:
|
|
() // not applicable
|
|
@unknown default:
|
|
() // we don't know what to do here, do nothing
|
|
}
|
|
}
|
|
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
|