From 6ead598a05a578a3b08253329f5da732ea5f5052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20R=C3=B6nnqvist?= Date: Thu, 31 Jul 2025 11:55:00 +0200 Subject: [PATCH] Update the Swift tools version to 6.1 while in Swift 5 language mode This is only intended for main, meaning that the first release it applies to is the 6.3 release. Updating the platforms to macOS 13/iOS 16 provides access to a wide range of Regex API. --- Package.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index 2381b5dfe..417f3e62a 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.9 +// swift-tools-version:6.1 /* This source file is part of the Swift.org open source project @@ -15,6 +15,8 @@ import class Foundation.ProcessInfo let swiftSettings: [SwiftSetting] = [ .unsafeFlags(["-Xfrontend", "-warn-long-expression-type-checking=1000"], .when(configuration: .debug)), + .swiftLanguageMode(.v5), + .enableUpcomingFeature("ConciseMagicFile"), // SE-0274: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0274-magic-file.md .enableUpcomingFeature("ExistentialAny"), // SE-0335: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0335-existential-any.md .enableUpcomingFeature("InternalImportsByDefault"), // SE-0409: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0409-access-level-on-imports.md @@ -23,8 +25,8 @@ let swiftSettings: [SwiftSetting] = [ let package = Package( name: "SwiftDocC", platforms: [ - .macOS(.v12), - .iOS(.v15) + .macOS(.v13), + .iOS(.v16) ], products: [ .library(