-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for Swift 6 mode and strict concurrency (#74)
- Loading branch information
1 parent
b199fd6
commit 2d6404a
Showing
7 changed files
with
95 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// swift-tools-version:6.0 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "hummingbird-websocket", | ||
platforms: [.macOS(.v14), .iOS(.v17), .tvOS(.v17)], | ||
products: [ | ||
.library(name: "HummingbirdWebSocket", targets: ["HummingbirdWebSocket"]), | ||
.library(name: "HummingbirdWSClient", targets: ["HummingbirdWSClient"]), | ||
.library(name: "HummingbirdWSCompression", targets: ["HummingbirdWSCompression"]), | ||
.library(name: "HummingbirdWSTesting", targets: ["HummingbirdWSTesting"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-rc.2"), | ||
.package(url: "https://github.com/apple/swift-http-types.git", from: "1.0.0"), | ||
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.0"), | ||
.package(url: "https://github.com/apple/swift-nio.git", from: "2.62.0"), | ||
.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.22.0"), | ||
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.5.0"), | ||
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.20.0"), | ||
.package(url: "https://github.com/adam-fowler/compress-nio.git", from: "1.2.0"), | ||
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.0.0"), | ||
], | ||
targets: [ | ||
.target(name: "HummingbirdWebSocket", dependencies: [ | ||
.byName(name: "HummingbirdWSCore"), | ||
.product(name: "Hummingbird", package: "hummingbird"), | ||
.product(name: "NIOHTTPTypes", package: "swift-nio-extras"), | ||
.product(name: "NIOHTTPTypesHTTP1", package: "swift-nio-extras"), | ||
]), | ||
.target(name: "HummingbirdWSClient", dependencies: [ | ||
.byName(name: "HummingbirdWSCore"), | ||
.product(name: "HTTPTypes", package: "swift-http-types"), | ||
.product(name: "Logging", package: "swift-log"), | ||
.product(name: "NIOCore", package: "swift-nio"), | ||
.product(name: "NIOHTTPTypesHTTP1", package: "swift-nio-extras"), | ||
.product(name: "NIOPosix", package: "swift-nio"), | ||
.product(name: "NIOSSL", package: "swift-nio-ssl"), | ||
.product(name: "NIOTransportServices", package: "swift-nio-transport-services"), | ||
.product(name: "NIOWebSocket", package: "swift-nio"), | ||
]), | ||
.target(name: "HummingbirdWSCore", dependencies: [ | ||
.product(name: "HTTPTypes", package: "swift-http-types"), | ||
.product(name: "NIOCore", package: "swift-nio"), | ||
.product(name: "NIOWebSocket", package: "swift-nio"), | ||
.product(name: "ServiceLifecycle", package: "swift-service-lifecycle"), | ||
]), | ||
.target(name: "HummingbirdWSCompression", dependencies: [ | ||
.byName(name: "HummingbirdWSCore"), | ||
.product(name: "CompressNIO", package: "compress-nio"), | ||
]), | ||
.target(name: "HummingbirdWSTesting", dependencies: [ | ||
.byName(name: "HummingbirdWSClient"), | ||
.product(name: "HummingbirdTesting", package: "hummingbird"), | ||
]), | ||
.testTarget(name: "HummingbirdWebSocketTests", dependencies: [ | ||
.byName(name: "HummingbirdWebSocket"), | ||
.byName(name: "HummingbirdWSClient"), | ||
.byName(name: "HummingbirdWSCompression"), | ||
.byName(name: "HummingbirdWSTesting"), | ||
.product(name: "Hummingbird", package: "hummingbird"), | ||
.product(name: "HummingbirdTesting", package: "hummingbird"), | ||
.product(name: "HummingbirdTLS", package: "hummingbird"), | ||
]), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters