Files
swift-nio-http2/Package.swift
T
Fabian Fett 42bdcae4ac Use non-deprecated API for removing handlers (#297)
### Motivation:

`removeHandlers(channel:)` was deprecated in NIO 2.32.0.

### Modifications:

- Raise minimum required `NIO` version to 2.32.0
- Use `removeHandlers(pipeline:)`

### Result:

We don't use deprecated API.
2021-08-18 16:22:51 +02:00

70 lines
2.3 KiB
Swift

// swift-tools-version:5.2
//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftNIO open source project
//
// Copyright (c) 2017-2018 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.32.0")
],
targets: [
.target(
name: "NIOHTTP2Server",
dependencies: [
"NIOHTTP2"
]),
.target(
name: "NIOHTTP2PerformanceTester",
dependencies: [
"NIOHTTP2"
]),
.target(
name: "NIOHTTP2",
dependencies: [
"NIOHPACK",
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOTLS", package: "swift-nio"),
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
]),
.target(
name: "NIOHPACK",
dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
]),
.testTarget(
name: "NIOHTTP2Tests",
dependencies: [
"NIOHTTP2",
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
]),
.testTarget(
name: "NIOHPACKTests",
dependencies: [
"NIOHPACK",
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
])
]
)