-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathPackage.swift
47 lines (46 loc) · 1.62 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// swift-tools-version: 5.8
import PackageDescription
let package = Package(
name: "rabbitmq-nio",
products: [
.library(name: "AMQPProtocol", targets: ["AMQPProtocol"]),
.library(name: "AMQPClient", targets: ["AMQPClient"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.48.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.23.0"),
.package(url: "https://github.com/apple/swift-collections.git", .upToNextMajor(from: "1.0.0")),
],
targets: [
.target(
name: "AMQPProtocol",
dependencies: [
.product(name: "NIOCore", package: "swift-nio"),
],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]
),
.target(
name: "AMQPClient",
dependencies: [
"AMQPProtocol",
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "Collections", package: "swift-collections"),
],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]
),
.testTarget(
name: "AMQPClientTests",
dependencies: ["AMQPClient"],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]
),
]
)