-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for Swift 6 language mode
- Loading branch information
Showing
3 changed files
with
71 additions
and
7 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,63 @@ | ||
// swift-tools-version: 5.10 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
|
||
// MARK: - Package configuration | ||
|
||
name: "hummingbird-grpc", | ||
|
||
platforms: [ | ||
.iOS(.v17), | ||
.macOS(.v14), | ||
.tvOS(.v17) | ||
], | ||
|
||
// MARK: - Products | ||
|
||
products: [ | ||
.library(name: "HummingbirdGRPC", targets: [ "HummingbirdGRPC" ]), | ||
], | ||
|
||
|
||
// MARK: - Source Dependencies | ||
|
||
dependencies: [ | ||
.package(url: "https://github.com/unsignedapps/grpc-swift.git", from: "1.23.0"), | ||
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.27.0"), | ||
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.21.2"), | ||
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-rc.2"), | ||
], | ||
|
||
|
||
// MARK: - Targets | ||
|
||
targets: [ | ||
.target( | ||
name: "HummingbirdGRPC", | ||
dependencies: [ | ||
.product(name: "GRPC", package: "grpc-swift"), | ||
.product(name: "Hummingbird", package: "hummingbird"), | ||
.product(name: "HummingbirdCore", package: "hummingbird"), | ||
.product(name: "HummingbirdHTTP2", package: "hummingbird"), | ||
.product(name: "SwiftProtobuf", package: "swift-protobuf"), | ||
], | ||
swiftSettings: [ | ||
.enableExperimentalFeature("StrictConcurrency"), | ||
] | ||
), | ||
.testTarget( | ||
name: "CompatibilityTests", | ||
dependencies: [ | ||
.product(name: "AsyncHTTPClient", package: "async-http-client"), | ||
.target(name: "HummingbirdGRPC"), | ||
], | ||
swiftSettings: [ | ||
.enableExperimentalFeature("StrictConcurrency"), | ||
] | ||
), | ||
] | ||
|
||
) |
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