-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Package.swift
89 lines (87 loc) · 3.76 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// swift-tools-version:5.9
import PackageDescription
let swiftSettings: [SwiftSetting] = [
.enableUpcomingFeature("StrictConcurrency"),
]
let package = Package(
name: "postgres-nio",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.watchOS(.v6),
.tvOS(.v13),
],
products: [
.library(name: "PostgresNIO", targets: ["PostgresNIO"]),
.library(name: "_ConnectionPoolModule", targets: ["_ConnectionPoolModule"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-atomics.git", from: "1.2.0"),
.package(url: "https://github.com/apple/swift-collections.git", from: "1.0.4"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.59.0"),
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.19.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.25.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "2.0.0" ..< "4.0.0"),
.package(url: "https://github.com/apple/swift-metrics.git", from: "2.4.1"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.3"),
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.5.0"),
],
targets: [
.target(
name: "PostgresNIO",
dependencies: [
.target(name: "_ConnectionPoolModule"),
.product(name: "Atomics", package: "swift-atomics"),
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "Logging", package: "swift-log"),
.product(name: "Metrics", package: "swift-metrics"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOTransportServices", package: "swift-nio-transport-services"),
.product(name: "NIOTLS", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
.product(name: "ServiceLifecycle", package: "swift-service-lifecycle"),
],
swiftSettings: swiftSettings
),
.target(
name: "_ConnectionPoolModule",
dependencies: [
.product(name: "Atomics", package: "swift-atomics"),
.product(name: "DequeModule", package: "swift-collections"),
],
path: "Sources/ConnectionPoolModule",
swiftSettings: swiftSettings
),
.testTarget(
name: "PostgresNIOTests",
dependencies: [
.target(name: "PostgresNIO"),
.product(name: "NIOEmbedded", package: "swift-nio"),
.product(name: "NIOTestUtils", package: "swift-nio"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "ConnectionPoolModuleTests",
dependencies: [
.target(name: "_ConnectionPoolModule"),
.product(name: "DequeModule", package: "swift-collections"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
.product(name: "NIOEmbedded", package: "swift-nio"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "IntegrationTests",
dependencies: [
.target(name: "PostgresNIO"),
.product(name: "NIOTestUtils", package: "swift-nio"),
],
swiftSettings: swiftSettings
),
]
)