Skip to content

Commit 0cc8068

Browse files
ainameadam-fowler
andauthored
Update Hummingbird example (#8759)
* Unblock hummingbird version up to latest minor ver * Remove outdated compiler option * Run Hummingbird as Swift 6 mode * Update Package.swift Co-authored-by: Adam Fowler <[email protected]> --------- Co-authored-by: Adam Fowler <[email protected]>
1 parent 11ad8f1 commit 0cc8068

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.10
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
@@ -7,20 +7,14 @@ let package = Package(
77
name: "server",
88
platforms: [.macOS(.v14)], // This is for development on macOS
99
dependencies: [
10-
.package(url: "https://github.com/hummingbird-project/hummingbird.git", .upToNextMinor(from: "2.0.0")),
10+
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.16.0"),
1111
],
1212
targets: [
1313
.executableTarget(
1414
name: "server",
1515
dependencies: [
1616
.product(name: "Hummingbird", package: "hummingbird"),
1717
],
18-
swiftSettings: [
19-
// Enable better optimizations when building in Release configuration. Despite the use of
20-
// the `.unsafeFlags` construct required by SwiftPM, this flag is recommended for Release
21-
// builds. See <https://github.com/swift-server/guides#building-for-production> for details.
22-
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
23-
]
2418
),
2519
]
2620
)

0 commit comments

Comments
 (0)