1- // swift-tools-version:6.1
1+ // swift-tools-version:6.2
22// The swift-tools-version declares the minimum version of Swift required to build this package.
33
44import PackageDescription
@@ -29,13 +29,9 @@ let package = Package(
2929 . package ( url: " https://github.com/soto-project/soto-core.git " , from: " 7.3.0 " ) ,
3030 /// Not-released area:
3131 . package ( url: " https://github.com/swiftlang/swift-evolution-metadata-extractor.git " , from: " 0.1.0 " ) ,
32- . package ( url: " https://github.com/apple/swift-markdown.git " , from: " 0.5.0 " ) ,
33- . package (
34- url: " https://github.com/swift-server/swift-aws-lambda-runtime.git " ,
35- /// Last commit on main as of this code change; V2
36- revision: " c7df9bcd8af279c70f991f5d53e48d73d3e6821a "
37- ) ,
38- . package ( url: " https://github.com/swift-server/swift-aws-lambda-events.git " , from: " 1.0.0 " ) ,
32+ . package ( url: " https://github.com/swiftlang/swift-markdown.git " , from: " 0.7.1 " ) ,
33+ . package ( url: " https://github.com/swift-server/swift-aws-lambda-runtime.git " , from: " 2.0.0-beta.3 " ) ,
34+ . package ( url: " https://github.com/swift-server/swift-aws-lambda-events.git " , from: " 1.2.1 " ) ,
3935 ] ,
4036 targets: [
4137 . executableTarget(
@@ -54,7 +50,7 @@ let package = Package(
5450 . target( name: " Shared " ) ,
5551 . target( name: " Models " ) ,
5652 ] ,
57- swiftSettings: targetsSwiftSettings
53+ swiftSettings: upcomingFeaturesSwiftSettings
5854 ) ,
5955 . lambdaTarget(
6056 name: " Users " ,
@@ -122,10 +118,11 @@ let package = Package(
122118 . product( name: " SotoSecretsManager " , package : " soto " ) ,
123119 . product( name: " SotoCore " , package : " soto-core " ) ,
124120 . product( name: " Logging " , package : " swift-log " ) ,
121+ . product( name: " AWSLambdaEvents " , package : " swift-aws-lambda-events " ) ,
125122 . target( name: " Shared " ) ,
126123 ] ,
127124 path: " ./Lambdas/LambdasShared " ,
128- swiftSettings: targetsSwiftSettings
125+ swiftSettings: upcomingFeaturesSwiftSettings
129126 ) ,
130127 . target(
131128 name: " GitHubAPI " ,
@@ -145,14 +142,14 @@ let package = Package(
145142 . copy( " openapi-generator-config.yaml " ) ,
146143 . copy( " openapi.yaml " ) ,
147144 ] ,
148- swiftSettings: targetsSwiftSettings
145+ swiftSettings: upcomingFeaturesSwiftSettings
149146 ) ,
150147 . target(
151148 name: " Models " ,
152149 dependencies: [
153150 . product( name: " DiscordModels " , package : " DiscordBM " )
154151 ] ,
155- swiftSettings: targetsSwiftSettings
152+ swiftSettings: upcomingFeaturesSwiftSettings
156153 ) ,
157154 . target(
158155 name: " Shared " ,
@@ -163,7 +160,7 @@ let package = Package(
163160 . product( name: " DiscordBM " , package : " DiscordBM " ) ,
164161 . target( name: " Models " ) ,
165162 ] ,
166- swiftSettings: targetsSwiftSettings
163+ swiftSettings: upcomingFeaturesSwiftSettings
167164 ) ,
168165 . target(
169166 name: " Rendering " ,
@@ -175,7 +172,7 @@ let package = Package(
175172 . product( name: " LeafKit " , package : " leaf-kit " ) ,
176173 . target( name: " Shared " ) ,
177174 ] ,
178- swiftSettings: targetsSwiftSettings
175+ swiftSettings: upcomingFeaturesSwiftSettings
179176 ) ,
180177 . testTarget(
181178 name: " PennyTests " ,
@@ -202,12 +199,12 @@ let package = Package(
202199 . target( name: " Penny " ) ,
203200 . target( name: " GHHooksLambda " ) ,
204201 ] ,
205- swiftSettings: testsSwiftSettings
202+ swiftSettings: upcomingFeaturesSwiftSettings
206203 ) ,
207204 ]
208205)
209206
210- /// Bug alert! Don't make these constants , or they won't take effect!
207+ /// Bug alert! Don't make this a constant , or it won't take effect!
211208/// https://github.com/apple/swift-package-manager/issues/6597
212209var upcomingFeaturesSwiftSettings : [ SwiftSetting ] {
213210 [
@@ -218,20 +215,6 @@ var upcomingFeaturesSwiftSettings: [SwiftSetting] {
218215 ]
219216}
220217
221- var targetsSwiftSettings : [ SwiftSetting ] {
222- upcomingFeaturesSwiftSettings + [
223- /// https://github.com/apple/swift/issues/67214
224- . unsafeFlags(
225- [ " -Xllvm " , " -vectorize-slp=false " ] ,
226- . when( platforms: [ . linux] , configuration: . release)
227- )
228- ]
229- }
230-
231- var testsSwiftSettings : [ SwiftSetting ] {
232- upcomingFeaturesSwiftSettings
233- }
234-
235218extension PackageDescription . Target {
236219 @MainActor
237220 static func lambdaTarget(
@@ -249,7 +232,7 @@ extension PackageDescription.Target {
249232 . target( name: " Models " ) ,
250233 ] + additionalDependencies,
251234 path: " ./Lambdas/ \( name) " ,
252- swiftSettings: targetsSwiftSettings
235+ swiftSettings: upcomingFeaturesSwiftSettings
253236 )
254237 }
255238}
0 commit comments