|
| 1 | +// swift-tools-version:6.0 |
| 2 | +import PackageDescription |
| 3 | + |
| 4 | +let package = Package( |
| 5 | + name: "server", |
| 6 | + platforms: [.macOS(.v15)], |
| 7 | + products: [ |
| 8 | + .executable(name: "server", targets: ["CTL"]), |
| 9 | + ], |
| 10 | + dependencies: [ |
| 11 | + .package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.0.0"), |
| 12 | + .package(url: "https://github.com/apple/swift-log.git", from: "1.5.0"), |
| 13 | + .package(url: "https://github.com/apple/swift-distributed-tracing.git", from: "1.0.0"), |
| 14 | + .package(url: "https://github.com/swift-otel/swift-otel.git", .upToNextMinor(from: "0.11.0")), |
| 15 | + .package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"), |
| 16 | + .package(url: "https://github.com/hummingbird-project/hummingbird-auth.git", from: "2.0.0"), |
| 17 | + .package(url: "https://github.com/swift-open-feature/swift-open-feature.git", branch: "main"), |
| 18 | + .package(url: "https://github.com/swift-open-feature/swift-ofrep.git", branch: "main"), |
| 19 | + |
| 20 | + // override HTTP Client until Tracing PR is merged |
| 21 | + .package(url: "https://github.com/slashmo/async-http-client.git", branch: "feature/tracing"), |
| 22 | + ], |
| 23 | + targets: [ |
| 24 | + .executableTarget( |
| 25 | + name: "CTL", |
| 26 | + dependencies: [ |
| 27 | + .target(name: "API"), |
| 28 | + .product(name: "ServiceLifecycle", package: "swift-service-lifecycle"), |
| 29 | + .product(name: "Logging", package: "swift-log"), |
| 30 | + .product(name: "Tracing", package: "swift-distributed-tracing"), |
| 31 | + .product(name: "OTel", package: "swift-otel"), |
| 32 | + .product(name: "OTLPGRPC", package: "swift-otel"), |
| 33 | + .product(name: "Hummingbird", package: "hummingbird"), |
| 34 | + .product(name: "OpenFeature", package: "swift-open-feature"), |
| 35 | + .product(name: "OpenFeatureTracing", package: "swift-open-feature"), |
| 36 | + .product(name: "OFREP", package: "swift-ofrep"), |
| 37 | + ] |
| 38 | + ), |
| 39 | + .target( |
| 40 | + name: "API", |
| 41 | + dependencies: [ |
| 42 | + .product(name: "ServiceLifecycle", package: "swift-service-lifecycle"), |
| 43 | + .product(name: "Logging", package: "swift-log"), |
| 44 | + .product(name: "Hummingbird", package: "hummingbird"), |
| 45 | + .product(name: "HummingbirdAuth", package: "hummingbird-auth"), |
| 46 | + .product(name: "OpenFeature", package: "swift-open-feature"), |
| 47 | + ] |
| 48 | + ) |
| 49 | + ] |
| 50 | +) |
0 commit comments