mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-05-03 07:32:29 +00:00
2e6a64abb3
* add a separate configuration struct for pool * review fixes * review fix
43 lines
1.7 KiB
Swift
43 lines
1.7 KiB
Swift
// swift-tools-version:5.0
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the AsyncHTTPClient open source project
|
|
//
|
|
// Copyright (c) 2018-2019 Apple Inc. and the AsyncHTTPClient project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "async-http-client",
|
|
products: [
|
|
.library(name: "AsyncHTTPClient", targets: ["AsyncHTTPClient"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-nio.git", from: "2.19.0"),
|
|
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.8.0"),
|
|
.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.3.0"),
|
|
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.5.1"),
|
|
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.0"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "AsyncHTTPClient",
|
|
dependencies: ["NIO", "NIOHTTP1", "NIOSSL", "NIOConcurrencyHelpers", "NIOHTTPCompression",
|
|
"NIOFoundationCompat", "NIOTransportServices", "Logging"]
|
|
),
|
|
.testTarget(
|
|
name: "AsyncHTTPClientTests",
|
|
dependencies: ["NIO", "NIOConcurrencyHelpers", "NIOSSL", "AsyncHTTPClient", "NIOFoundationCompat",
|
|
"NIOTestUtils", "Logging"]
|
|
),
|
|
]
|
|
)
|