Skip to content

Commit 11ad8f1

Browse files
authored
Update Vapor example (#8760)
1 parent 5dc66c8 commit 11ad8f1

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed
Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
1-
// swift-tools-version:5.2
1+
// swift-tools-version:6.0
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
55

66
let package = Package(
77
name: "server",
88
platforms: [
9-
.macOS("10.15")
9+
.macOS(.v14)
1010
],
1111
dependencies: [
1212
// Dependencies declare other packages that this package depends on.
13-
.package(url: "https://github.com/vapor/vapor.git", .upToNextMinor(from: "4.117.0"))
13+
.package(url: "https://github.com/vapor/vapor.git", from: "4.117.0")
1414
],
1515
targets: [
1616
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
1717
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
18-
.target(
18+
.executableTarget(
1919
name: "server",
2020
dependencies: [
2121
.product(name: "Vapor", package: "vapor")
2222
],
23-
swiftSettings: [
24-
// Enable better optimizations when building in Release configuration. Despite the use of
25-
// the `.unsafeFlags` construct required by SwiftPM, this flag is recommended for Release
26-
// builds. See <https://github.com/swift-server/guides#building-for-production> for details.
27-
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
28-
]),
29-
23+
),
3024
]
3125
)

0 commit comments

Comments
 (0)