|
| 1 | +// swift-tools-version:6.1 |
| 2 | +import PackageDescription |
| 3 | + |
| 4 | +let package = Package( |
| 5 | + name: "benchmarks", |
| 6 | + platforms: [ |
| 7 | + .macOS(.v15) |
| 8 | + ], |
| 9 | + dependencies: [ |
| 10 | + .package(path: "../"), |
| 11 | + .package(url: "https://github.com/ordo-one/package-benchmark.git", from: "1.29.2"), |
| 12 | + .package(url: "https://github.com/apple/swift-log.git", from: "1.6.3"), |
| 13 | + ], |
| 14 | + targets: [ |
| 15 | + .executableTarget( |
| 16 | + name: "ConsoleLoggerBenchmarks", |
| 17 | + dependencies: [ |
| 18 | + .product(name: "Benchmark", package: "package-benchmark"), |
| 19 | + .product(name: "ConsoleLogger", package: "console-kit"), |
| 20 | + .product(name: "ConsoleKit", package: "console-kit"), |
| 21 | + .product(name: "Logging", package: "swift-log"), |
| 22 | + ], |
| 23 | + path: "ConsoleLoggerBenchmarks", |
| 24 | + swiftSettings: swiftSettings, |
| 25 | + plugins: [ |
| 26 | + .plugin(name: "BenchmarkPlugin", package: "package-benchmark") |
| 27 | + ] |
| 28 | + ) |
| 29 | + ] |
| 30 | +) |
| 31 | + |
| 32 | +var swiftSettings: [SwiftSetting] { |
| 33 | + [ |
| 34 | + .enableUpcomingFeature("ExistentialAny"), |
| 35 | + .enableUpcomingFeature("MemberImportVisibility"), |
| 36 | + .enableUpcomingFeature("ExistentialAny"), |
| 37 | + .enableUpcomingFeature("InternalImportsByDefault"), |
| 38 | + .enableUpcomingFeature("MemberImportVisibility"), |
| 39 | + .enableUpcomingFeature("InferIsolatedConformances"), |
| 40 | + .enableUpcomingFeature("ImmutableWeakCaptures"), |
| 41 | + ] |
| 42 | +} |
0 commit comments