|
1 | | -// swift-tools-version: 5.9 |
| 1 | +// swift-tools-version: 5.10 |
2 | 2 |
|
| 3 | +import CompilerPluginSupport |
3 | 4 | import PackageDescription |
4 | 5 |
|
5 | 6 | let package = Package( |
6 | 7 | name: "CallableKit", |
7 | | - platforms: [.macOS(.v13)], |
| 8 | + platforms: [.macOS(.v14)], |
8 | 9 | products: [ |
9 | 10 | .executable(name: "codegen", targets: ["Codegen"]), |
10 | 11 | .library(name: "CallableKit", targets: ["CallableKit"]), |
| 12 | + .library(name: "CallableKitVaporTransport", targets: ["CallableKitVaporTransport"]), |
| 13 | + .library(name: "CallableKitHummingbirdTransport", targets: ["CallableKitHummingbirdTransport"]), |
11 | 14 | ], |
12 | 15 | dependencies: [ |
13 | 16 | .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.2"), |
14 | | - .package(url: "https://github.com/omochi/CodableToTypeScript", from: "2.11.0"), |
15 | | - .package(url: "https://github.com/omochi/SwiftTypeReader", from: "2.8.0"), |
| 17 | + .package(url: "https://github.com/swiftlang/swift-syntax.git", from: "600.0.1"), |
| 18 | + .package(url: "https://github.com/omochi/CodableToTypeScript.git", from: "2.11.0"), |
| 19 | + .package(url: "https://github.com/omochi/SwiftTypeReader.git", from: "2.8.0"), |
| 20 | + .package(url: "https://github.com/vapor/vapor.git", from: "4.106.7"), |
| 21 | + .package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.5.0"), |
16 | 22 | ], |
17 | 23 | targets: [ |
18 | 24 | .executableTarget( |
19 | 25 | name: "Codegen", |
20 | 26 | dependencies: [ |
21 | 27 | .product(name: "ArgumentParser", package: "swift-argument-parser"), |
22 | | - "CallableKit" |
| 28 | + "CodegenImpl", |
23 | 29 | ] |
24 | 30 | ), |
25 | 31 | .target( |
26 | | - name: "CallableKit", |
| 32 | + name: "CodegenImpl", |
27 | 33 | dependencies: [ |
28 | 34 | "CodableToTypeScript", |
29 | | - "SwiftTypeReader" |
| 35 | + "SwiftTypeReader", |
30 | 36 | ], |
31 | 37 | swiftSettings: [ |
32 | 38 | .enableUpcomingFeature("BareSlashRegexLiterals"), |
33 | 39 | ] |
| 40 | + ), |
| 41 | + .target( |
| 42 | + name: "CallableKit", |
| 43 | + dependencies: [ |
| 44 | + "CallableKitMacros", |
| 45 | + ] |
| 46 | + ), |
| 47 | + .macro( |
| 48 | + name: "CallableKitMacros", |
| 49 | + dependencies: [ |
| 50 | + .product(name: "SwiftCompilerPlugin", package: "swift-syntax"), |
| 51 | + .product(name: "SwiftDiagnostics", package: "swift-syntax"), |
| 52 | + .product(name: "SwiftSyntaxMacros", package: "swift-syntax"), |
| 53 | + ] |
| 54 | + ), |
| 55 | + .target( |
| 56 | + name: "CallableKitVaporTransport", |
| 57 | + dependencies: [ |
| 58 | + .product(name: "Vapor", package: "vapor"), |
| 59 | + "CallableKit", |
| 60 | + ] |
| 61 | + ), |
| 62 | + .target( |
| 63 | + name: "CallableKitHummingbirdTransport", |
| 64 | + dependencies: [ |
| 65 | + .product(name: "Hummingbird", package: "hummingbird"), |
| 66 | + "CallableKit", |
| 67 | + ] |
34 | 68 | ) |
35 | 69 | ] |
36 | 70 | ) |
0 commit comments