mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-05-03 07:32:29 +00:00
2fc105c77f
`swift-nio` has defined a new method `collect(upTo:into:)` on `AsyncSequence` which we use in our examples.
68 lines
3.1 KiB
Swift
68 lines
3.1 KiB
Swift
// swift-tools-version:5.2
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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.38.0"),
|
|
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.14.1"),
|
|
.package(url: "https://github.com/apple/swift-nio-http2.git", from: "1.19.0"),
|
|
.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.10.0"),
|
|
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.11.4"),
|
|
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.0"),
|
|
],
|
|
targets: [
|
|
.target(name: "CAsyncHTTPClient"),
|
|
.target(
|
|
name: "AsyncHTTPClient",
|
|
dependencies: [
|
|
.target(name: "CAsyncHTTPClient"),
|
|
.product(name: "NIO", package: "swift-nio"),
|
|
.product(name: "NIOCore", package: "swift-nio"),
|
|
.product(name: "NIOPosix", package: "swift-nio"),
|
|
.product(name: "NIOHTTP1", package: "swift-nio"),
|
|
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
|
|
.product(name: "NIOFoundationCompat", package: "swift-nio"),
|
|
.product(name: "NIOHTTP2", package: "swift-nio-http2"),
|
|
.product(name: "NIOSSL", package: "swift-nio-ssl"),
|
|
.product(name: "NIOHTTPCompression", package: "swift-nio-extras"),
|
|
.product(name: "NIOSOCKS", package: "swift-nio-extras"),
|
|
.product(name: "NIOTransportServices", package: "swift-nio-transport-services"),
|
|
.product(name: "Logging", package: "swift-log"),
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "AsyncHTTPClientTests",
|
|
dependencies: [
|
|
.target(name: "AsyncHTTPClient"),
|
|
.product(name: "NIOCore", package: "swift-nio"),
|
|
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
|
|
.product(name: "NIOEmbedded", package: "swift-nio"),
|
|
.product(name: "NIOFoundationCompat", package: "swift-nio"),
|
|
.product(name: "NIOTestUtils", package: "swift-nio"),
|
|
.product(name: "NIOSSL", package: "swift-nio-ssl"),
|
|
.product(name: "NIOHTTP2", package: "swift-nio-http2"),
|
|
.product(name: "NIOSOCKS", package: "swift-nio-extras"),
|
|
.product(name: "Logging", package: "swift-log"),
|
|
]
|
|
),
|
|
]
|
|
)
|