-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPackage.swift
More file actions
65 lines (63 loc) · 2.38 KB
/
Copy pathPackage.swift
File metadata and controls
65 lines (63 loc) · 2.38 KB
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
// swift-tools-version: 6.3
import PackageDescription
let package = Package(
name: "APRelay",
platforms: [
.macOS(.v15),
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "4.99.0"),
.package(url: "https://github.com/vapor/queues-redis-driver.git", from: "1.1.0"),
.package(url: "https://github.com/vapor/queues.git", from: "1.12.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "3.0.0" ..< "5.0.0"),
.package(url: "https://github.com/swift-server/swift-prometheus.git", from: "2.0.0"),
.package(url: "https://github.com/vapor/leaf.git", from: "4.4.0"),
.package(url: "https://github.com/sinoru/swift-json.git", from: "0.2.0"),
.package(url: "https://github.com/scinfu/SwiftSoup.git", from: "2.13.4"),
],
targets: [
.plugin(
name: "VersionGeneratorPlugin",
capability: .buildTool()
),
.target(
name: "APRelayCore",
dependencies: [
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "_CryptoExtras", package: "swift-crypto"),
],
swiftSettings: [.strictMemorySafety()]
),
.executableTarget(
name: "APRelay",
dependencies: [
"APRelayCore",
.product(name: "Vapor", package: "vapor"),
.product(name: "QueuesRedisDriver", package: "queues-redis-driver"),
.product(name: "Prometheus", package: "swift-prometheus"),
.product(name: "Leaf", package: "leaf"),
.product(name: "JSON", package: "swift-json"),
],
swiftSettings: [.strictMemorySafety()],
plugins: [
.plugin(name: "VersionGeneratorPlugin"),
]
),
.testTarget(
name: "APRelayCoreTests",
dependencies: ["APRelayCore"],
swiftSettings: [.strictMemorySafety()]
),
.testTarget(
name: "APRelayTests",
dependencies: [
"APRelay",
"SwiftSoup",
.product(name: "VaporTesting", package: "vapor"),
.product(name: "XCTQueues", package: "queues"),
],
swiftSettings: [.strictMemorySafety()]
),
],
swiftLanguageModes: [.v6]
)