-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
70 lines (68 loc) · 2.78 KB
/
Package.swift
File metadata and controls
70 lines (68 loc) · 2.78 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
66
67
68
69
70
// swift-tools-version: 6.1
import PackageDescription
let sharedSwiftSettings: [SwiftSetting] = [
.swiftLanguageMode(.v6),
.enableUpcomingFeature("ExistentialAny"),
]
let package = Package(
name: "ARCP",
platforms: [
.macOS(.v14)
],
products: [
.library(name: "ARCP", targets: ["ARCP"]),
.executable(name: "arcp", targets: ["arcp-cli"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-log.git", from: "1.6.0"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.74.0"),
.package(url: "https://github.com/vapor/websocket-kit.git", from: "2.15.0"),
// Pin under 5.3.0: jwt-kit 5.3+ adds MLDSA support that pulls in
// CryptoKit types only available on Swift 6.2+, but the SDK still
// targets Swift 6.1 as the floor.
.package(url: "https://github.com/vapor/jwt-kit.git", "5.1.0"..<"5.3.0"),
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.15.3"),
.package(url: "https://github.com/apple/swift-format.git", from: "602.0.0"),
.package(url: "https://github.com/swiftlang/swift-docc-plugin.git", from: "1.4.0"),
],
targets: [
.target(
name: "ARCP",
dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOWebSocket", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "WebSocketKit", package: "websocket-kit"),
.product(name: "JWTKit", package: "jwt-kit"),
.product(name: "SQLite", package: "SQLite.swift"),
],
resources: [
.copy("Store/Resources/schema.sql")
],
swiftSettings: sharedSwiftSettings
),
.executableTarget(
name: "arcp-cli",
dependencies: [
"ARCP",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Logging", package: "swift-log"),
],
path: "Sources/arcp-cli",
swiftSettings: sharedSwiftSettings
),
.testTarget(
name: "ARCPTests",
dependencies: [
"ARCP",
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "WebSocketKit", package: "websocket-kit"),
],
swiftSettings: sharedSwiftSettings
),
]
)