|  | 
| 1 |  | -// swift-tools-version: 5.9 | 
|  | 1 | +// swift-tools-version: 6.0 | 
| 2 | 2 | // The swift-tools-version declares the minimum version of Swift required to build this package. | 
| 3 | 3 | 
 | 
| 4 | 4 | import CompilerPluginSupport | 
| 5 | 5 | import PackageDescription | 
| 6 | 6 | 
 | 
| 7 | 7 | let package = Package( | 
| 8 |  | -  name: "swift-macro-struct-transaction", | 
| 9 |  | -  platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .macCatalyst(.v13)], | 
|  | 8 | +  name: "StateStruct", | 
|  | 9 | +  platforms: [.macOS(.v13), .iOS(.v16), .tvOS(.v13), .watchOS(.v6), .macCatalyst(.v13)], | 
| 10 | 10 |   products: [ | 
| 11 |  | -    // Products define the executables and libraries a package produces, making them visible to other packages. | 
| 12 | 11 |     .library( | 
| 13 |  | -      name: "StructTransaction", | 
| 14 |  | -      targets: ["StructTransaction"] | 
| 15 |  | -    ), | 
| 16 |  | -    .executable( | 
| 17 |  | -      name: "StructTransactionClient", | 
| 18 |  | -      targets: ["StructTransactionClient"] | 
|  | 12 | +      name: "StateStruct", | 
|  | 13 | +      targets: ["StateStruct"] | 
| 19 | 14 |     ), | 
| 20 | 15 |   ], | 
| 21 | 16 |   dependencies: [ | 
| 22 |  | -    // Depend on the Swift 5.9 release of SwiftSyntax | 
| 23 | 17 |     .package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0"), | 
| 24 | 18 |     .package(url: "https://github.com/pointfreeco/swift-macro-testing.git", from: "0.2.1") | 
| 25 | 19 |   ], | 
| 26 | 20 |   targets: [ | 
| 27 |  | -    // Targets are the basic building blocks of a package, defining a module or a test suite. | 
| 28 |  | -    // Targets can depend on other targets in this package and products from dependencies. | 
| 29 |  | -    // Macro implementation that performs the source transformation of a macro. | 
| 30 | 21 |     .macro( | 
| 31 |  | -      name: "StructTransactionMacros", | 
|  | 22 | +      name: "StateStructMacros", | 
| 32 | 23 |       dependencies: [ | 
| 33 | 24 |         .product(name: "SwiftSyntaxMacros", package: "swift-syntax"), | 
| 34 | 25 |         .product(name: "SwiftCompilerPlugin", package: "swift-syntax"), | 
| 35 | 26 |       ] | 
| 36 | 27 |     ), | 
| 37 |  | - | 
| 38 |  | -    // Library that exposes a macro as part of its API, which is used in client programs. | 
| 39 | 28 |     .target( | 
| 40 |  | -      name: "StructTransaction", | 
| 41 |  | -      dependencies: ["StructTransactionMacros"] | 
| 42 |  | -    ), | 
| 43 |  | - | 
| 44 |  | -    // A client of the library, which is able to use the macro in its own code. | 
| 45 |  | -    .executableTarget( | 
| 46 |  | -      name: "StructTransactionClient", | 
| 47 |  | -      dependencies: ["StructTransaction"] | 
|  | 29 | +      name: "StateStruct", | 
|  | 30 | +      dependencies: ["StateStructMacros"] | 
| 48 | 31 |     ), | 
| 49 |  | - | 
| 50 |  | -    // A test target used to develop the macro implementation. | 
| 51 | 32 |     .testTarget( | 
| 52 |  | -      name: "StructTransactionMacroTests", | 
|  | 33 | +      name: "StateStructMacroTests", | 
| 53 | 34 |       dependencies: [ | 
| 54 |  | -        "StructTransactionMacros", | 
|  | 35 | +        "StateStructMacros", | 
| 55 | 36 |         .product(name: "MacroTesting", package: "swift-macro-testing"), | 
| 56 | 37 |         .product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"), | 
| 57 | 38 |       ] | 
| 58 | 39 |     ), | 
| 59 |  | - | 
| 60 | 40 |     .testTarget( | 
| 61 |  | -      name: "StructTransactionTests", | 
|  | 41 | +      name: "StateStructTests", | 
| 62 | 42 |       dependencies: [ | 
| 63 |  | -        "StructTransaction" | 
|  | 43 | +        "StateStruct" | 
| 64 | 44 |       ] | 
| 65 | 45 |     ), | 
| 66 |  | -  ] | 
|  | 46 | +  ], | 
|  | 47 | +  swiftLanguageModes: [.v6] | 
| 67 | 48 | ) | 
0 commit comments