1
- // swift-tools-version: 5.10
1
+ // swift-tools-version: 6.0
2
2
//===----------------------------------------------------------------------===//
3
3
// Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved.
4
4
//
@@ -49,28 +49,33 @@ let package = Package(
49
49
targets: [
50
50
. target(
51
51
name: " PklSwift " ,
52
- dependencies: [ " MessagePack " , " PklSwiftInternals " , " SemanticVersion " ]
52
+ dependencies: [ " MessagePack " , " PklSwiftInternals " , " SemanticVersion " ] ,
53
+ swiftSettings: [ . enableUpcomingFeature( " StrictConcurrency " ) ]
53
54
) ,
54
55
. target(
55
- name: " PklSwiftInternals "
56
+ name: " PklSwiftInternals " ,
57
+ swiftSettings: [ . enableUpcomingFeature( " StrictConcurrency " ) ]
56
58
) ,
57
59
. target(
58
60
name: " MessagePack " ,
59
61
dependencies: [
60
62
. product( name: " SystemPackage " , package : " swift-system " ) ,
61
- ]
63
+ ] ,
64
+ swiftSettings: [ . enableUpcomingFeature( " StrictConcurrency " ) ]
62
65
) ,
63
66
. executableTarget(
64
67
name: " pkl-gen-swift " ,
65
68
dependencies: [
66
69
. product( name: " ArgumentParser " , package : " swift-argument-parser " ) ,
67
70
" PklSwift " ,
68
71
] ,
69
- resources: [ . embedInCode( " Resources/VERSION.txt " ) ]
72
+ resources: [ . embedInCode( " Resources/VERSION.txt " ) ] ,
73
+ swiftSettings: [ . enableUpcomingFeature( " StrictConcurrency " ) ]
70
74
) ,
71
75
. executableTarget(
72
76
name: " test-external-reader " ,
73
- dependencies: [ " PklSwift " ]
77
+ dependencies: [ " PklSwift " ] ,
78
+ swiftSettings: [ . enableUpcomingFeature( " StrictConcurrency " ) ]
74
79
) ,
75
80
. testTarget(
76
81
name: " PklSwiftTests " ,
@@ -87,14 +92,17 @@ let package = Package(
87
92
" Fixtures/Collections.pkl " ,
88
93
" Fixtures/Poly.pkl " ,
89
94
" Fixtures/ApiTypes.pkl " ,
90
- ]
95
+ ] ,
96
+ swiftSettings: [ . enableUpcomingFeature( " StrictConcurrency " ) ]
91
97
) ,
92
98
. testTarget(
93
99
name: " MessagePackTests " ,
94
100
dependencies: [
95
101
" MessagePack " ,
96
- ]
102
+ ] ,
103
+ swiftSettings: [ . enableUpcomingFeature( " StrictConcurrency " ) ]
97
104
) ,
98
105
] ,
106
+ swiftLanguageModes: [ . v5, . v6] ,
99
107
cxxLanguageStandard: . cxx20
100
108
)
0 commit comments