-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
88 lines (79 loc) · 2.95 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
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
import CompilerPluginSupport
let package = Package(
name: "destiny",
products: [
.library(
name: "Destiny",
targets: ["Destiny"]
),
],
dependencies: [
// Macros
.package(url: "https://github.com/swiftlang/swift-syntax", from: "600.0.0"),
// Request/Response types
.package(url: "https://github.com/apple/swift-http-types", from: "1.3.0"),
// Logging
.package(url: "https://github.com/apple/swift-log", from: "1.6.1"),
// Service runtime
.package(url: "https://github.com/swift-server/swift-service-lifecycle", from: "2.6.1"),
// Compression
.package(url: "https://github.com/RandomHashTags/swift-compression", branch: "main")
],
targets: [
.macro(
name: "DestinyUtilityMacros",
dependencies: [
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
.product(name: "SwiftDiagnostics", package: "swift-syntax")
]
),
.target(
name: "DestinyUtilities",
dependencies: [
"DestinyUtilityMacros",
.product(name: "HTTPTypes", package: "swift-http-types"),
.product(name: "Logging", package: "swift-log"),
.product(name: "SwiftCompression", package: "swift-compression"),
.product(name: "ServiceLifecycle", package: "swift-service-lifecycle"),
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftSyntaxMacros", package: "swift-syntax")
]
),
.target(
name: "DestinyDefaults",
dependencies: [
"DestinyUtilities"
]
),
.target(
name: "Destiny",
dependencies: [
"DestinyMacros",
"DestinyDefaults",
"DestinyUtilities"
]
),
.macro(
name: "DestinyMacros",
dependencies: [
"DestinyUtilityMacros",
"DestinyDefaults",
"DestinyUtilities",
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
.product(name: "SwiftDiagnostics", package: "swift-syntax")
]
),
.executableTarget(name: "Run", dependencies: ["Destiny"]),
.testTarget(
name: "DestinyTests",
dependencies: ["Destiny"]
),
]
)