Skip to content

Commit 10e763b

Browse files
committed
Add Swift 6.0 specific manifest for StrictConcurrency flag
strict-concurrency-fix
1 parent 3a07fe2 commit 10e763b

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

[email protected]

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// swift-tools-version: 5.8
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "swift-argument-encoding",
7+
platforms: [.macOS(.v12)],
8+
products: [
9+
.library(name: "ArgumentEncoding", targets: ["ArgumentEncoding"]),
10+
],
11+
dependencies: [
12+
.dependencies,
13+
],
14+
targets: [
15+
.target(
16+
name: "ArgumentEncoding",
17+
dependencies: [
18+
.dependencies,
19+
],
20+
swiftSettings: .swiftSix
21+
),
22+
.testTarget(
23+
name: "ArgumentEncodingTests",
24+
dependencies: [
25+
"ArgumentEncoding",
26+
],
27+
swiftSettings: .swiftSix
28+
),
29+
]
30+
)
31+
32+
// MARK: PointFree
33+
34+
extension Package.Dependency {
35+
static let dependencies: Package.Dependency = .package(
36+
url: "https://github.com/pointfreeco/swift-dependencies.git",
37+
.upToNextMajor(from: "1.0.0")
38+
)
39+
}
40+
41+
extension Target.Dependency {
42+
static let dependencies: Self = .product(name: "Dependencies", package: "swift-dependencies")
43+
}
44+
45+
extension [SwiftSetting] {
46+
static let swiftSix: Self = [
47+
.enableUpcomingFeature("BareSlashRegexLiterals"),
48+
.enableUpcomingFeature("ConciseMagicFile"),
49+
.enableUpcomingFeature("DeprecateApplicationMain"),
50+
.enableUpcomingFeature("DisableOutwardActorInference"),
51+
.enableUpcomingFeature("ForwardTrailingClosures"),
52+
.enableUpcomingFeature("ImportObjcForwardDeclarations"),
53+
.enableUpcomingFeature("InternalImportsByDefault"),
54+
.enableUpcomingFeature("StrictConcurrency"),
55+
]
56+
}

0 commit comments

Comments
 (0)