1
- // swift-tools-version: 5.8
2
- import PackageDescription
1
+ // swift-tools-version: 6.0
2
+ @ preconcurrency import PackageDescription
3
3
4
4
var package = Package ( name: " swift-utilities " )
5
5
@@ -46,7 +46,8 @@ AssertionExtras
46
46
]
47
47
$0. with = [
48
48
. customDump,
49
- . xcTestDynamicOverlay,
49
+ . issueReporting,
50
+ . issueReportingTestSupport,
50
51
]
51
52
}
52
53
#if !os(Linux)
58
59
]
59
60
$0. with = [
60
61
. asyncAlgorithms,
62
+ . concurrencyExtras,
61
63
. deque,
62
64
. dependencies,
65
+ . dependenciesMacros,
63
66
. orderedCollections,
64
67
]
65
68
}
@@ -76,7 +79,9 @@ FileManagerClient
76
79
$0. createProduct = . library
77
80
$0. createUnitTests = false
78
81
$0. with = [
79
- . xcTestDynamicOverlay
82
+ . dependencies,
83
+ . dependenciesMacros,
84
+ . issueReporting,
80
85
]
81
86
}
82
87
Protected
@@ -90,7 +95,7 @@ Reachability
90
95
$0. with = [
91
96
. asyncAlgorithms,
92
97
. dependencies,
93
- . xcTestDynamicOverlay ,
98
+ . issueReporting ,
94
99
]
95
100
}
96
101
ShortID
@@ -113,23 +118,30 @@ ShortID
113
118
package . dependencies = [
114
119
. package ( url: " https://github.com/apple/swift-async-algorithms " , from: " 1.0.0 " ) ,
115
120
. package ( url: " https://github.com/apple/swift-argument-parser " , from: " 1.2.2 " ) ,
116
- . package ( url: " https://github.com/apple/swift-collections " , from: " 1.0.2 " ) ,
121
+ . package ( url: " https://github.com/apple/swift-collections " , from: " 1.1.0 " ) ,
117
122
. package ( url: " https://github.com/apple/swift-docc-plugin " , from: " 1.3.0 " ) ,
123
+ . package ( url: " https://github.com/pointfreeco/swift-concurrency-extras " , from: " 1.3.0 " ) ,
118
124
. package ( url: " https://github.com/pointfreeco/swift-custom-dump " , from: " 1.0.0 " ) ,
119
- . package ( url: " https://github.com/pointfreeco/swift-dependencies " , from: " 1.2 .0 " ) ,
120
- . package ( url: " http://github.com/pointfreeco/xctest-dynamic-overlay " , from: " 1.1.2 " ) ,
125
+ . package ( url: " https://github.com/pointfreeco/swift-dependencies " , from: " 1.7 .0 " ) ,
126
+ . package ( url: " http://github.com/pointfreeco/xctest-dynamic-overlay " , from: " 1.5.0 " ) ,
121
127
]
122
128
123
129
extension Target . Dependency {
124
130
static let asyncAlgorithms : Self = . product(
125
131
name: " AsyncAlgorithms " , package : " swift-async-algorithms "
126
132
)
133
+ static let concurrencyExtras : Self = . product(
134
+ name: " ConcurrencyExtras " , package : " swift-concurrency-extras "
135
+ )
127
136
static let customDump : Self = . product(
128
137
name: " CustomDump " , package : " swift-custom-dump "
129
138
)
130
139
static let dependencies : Self = . product(
131
140
name: " Dependencies " , package : " swift-dependencies "
132
141
)
142
+ static let dependenciesMacros : Self = . product(
143
+ name: " DependenciesMacros " , package : " swift-dependencies "
144
+ )
133
145
static let deque : Target . Dependency = . product(
134
146
name: " DequeModule " , package : " swift-collections "
135
147
)
@@ -139,8 +151,11 @@ extension Target.Dependency {
139
151
static let tagged : Self = . product(
140
152
name: " Tagged " , package : " swift-tagged "
141
153
)
142
- static let xcTestDynamicOverlay : Self = . product(
143
- name: " XCTestDynamicOverlay " , package : " xctest-dynamic-overlay "
154
+ static let issueReporting : Self = . product(
155
+ name: " IssueReporting " , package : " xctest-dynamic-overlay "
156
+ )
157
+ static let issueReportingTestSupport : Self = . product(
158
+ name: " IssueReportingTestSupport " , package : " xctest-dynamic-overlay "
144
159
)
145
160
}
146
161
@@ -347,7 +362,7 @@ infix operator <>
347
362
extension String {
348
363
349
364
/// Adds the string as a module to the package, using the provided module
350
- static func <+ ( lhs: String , rhs: Module ) {
365
+ @ MainActor static func <+ ( lhs: String , rhs: Module ) {
351
366
var module = rhs
352
367
module. name = lhs
353
368
package . add ( module: module)
@@ -358,7 +373,7 @@ infix operator <+
358
373
extension String {
359
374
360
375
/// Adds the string as a module to the package, allowing for inline customization
361
- static func <> ( lhs: String , rhs: Module . Builder ) {
376
+ @ MainActor static func <> ( lhs: String , rhs: Module . Builder ) {
362
377
var module = Module ( name: lhs)
363
378
rhs ( & module)
364
379
package . add ( module: module)
0 commit comments