mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: SwiftNIO periodically drops support for older Swift versions. Now that 5.7 has been released, 5.4 will be dropped. Modifications: - Remove 5.4 specific Package.swift and docker-compose - Update the 5.7 docker-compose to use the released 5.7 and move from focal (2004) to jammy (2204) - Fix tools version in Package@swift-5.5.swift - Update docs Results: Minimum Swift version is 5.5
86 lines
3.2 KiB
Swift
86 lines
3.2 KiB
Swift
// swift-tools-version:5.5
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftNIO open source project
|
|
//
|
|
// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-nio-http2",
|
|
products: [
|
|
.library(name: "NIOHTTP2", targets: ["NIOHTTP2"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-nio.git", from: "2.35.0"),
|
|
.package(url: "https://github.com/apple/swift-atomics.git", from: "1.0.2"),
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "NIOHTTP2Server",
|
|
dependencies: [
|
|
"NIOHTTP2",
|
|
.product(name: "NIOCore", package: "swift-nio"),
|
|
.product(name: "NIOPosix", package: "swift-nio"),
|
|
.product(name: "NIOHTTP1", package: "swift-nio"),
|
|
]),
|
|
.executableTarget(
|
|
name: "NIOHTTP2PerformanceTester",
|
|
dependencies: [
|
|
"NIOHTTP2",
|
|
.product(name: "NIOCore", package: "swift-nio"),
|
|
.product(name: "NIOPosix", package: "swift-nio"),
|
|
.product(name: "NIOEmbedded", package: "swift-nio"),
|
|
]),
|
|
.target(
|
|
name: "NIOHTTP2",
|
|
dependencies: [
|
|
"NIOHPACK",
|
|
.product(name: "NIO", package: "swift-nio"),
|
|
.product(name: "NIOCore", package: "swift-nio"),
|
|
.product(name: "NIOHTTP1", package: "swift-nio"),
|
|
.product(name: "NIOTLS", package: "swift-nio"),
|
|
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
|
|
.product(name: "Atomics", package: "swift-atomics"),
|
|
]),
|
|
.target(
|
|
name: "NIOHPACK",
|
|
dependencies: [
|
|
.product(name: "NIO", package: "swift-nio"),
|
|
.product(name: "NIOCore", package: "swift-nio"),
|
|
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
|
|
.product(name: "NIOHTTP1", package: "swift-nio"),
|
|
]),
|
|
.testTarget(
|
|
name: "NIOHTTP2Tests",
|
|
dependencies: [
|
|
"NIOHTTP2",
|
|
.product(name: "NIOCore", package: "swift-nio"),
|
|
.product(name: "NIOEmbedded", package: "swift-nio"),
|
|
.product(name: "NIOHTTP1", package: "swift-nio"),
|
|
.product(name: "NIOFoundationCompat", package: "swift-nio"),
|
|
]),
|
|
.testTarget(
|
|
name: "NIOHPACKTests",
|
|
dependencies: [
|
|
"NIOHPACK",
|
|
.product(name: "NIOCore", package: "swift-nio"),
|
|
.product(name: "NIOFoundationCompat", package: "swift-nio"),
|
|
],
|
|
resources: [
|
|
.copy("Fixtures/large_complex_huffman_b64.txt"),
|
|
.copy("Fixtures/large_huffman_b64.txt"),
|
|
]
|
|
)
|
|
]
|
|
)
|