mirror of
https://github.com/swift-server/swift-service-lifecycle
synced 2026-11-22 04:30:45 +00:00
The support window is 3 latest Swift versions. CI i already running for Swift 6.2, 6.3 and 6.4 only. Updating the Swift tools and the package to match this.
76 lines
2.0 KiB
Swift
76 lines
2.0 KiB
Swift
// swift-tools-version:6.2
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-service-lifecycle",
|
|
products: [
|
|
.library(
|
|
name: "ServiceLifecycle",
|
|
targets: ["ServiceLifecycle"]
|
|
),
|
|
.library(
|
|
name: "ServiceLifecycleTestKit",
|
|
targets: ["ServiceLifecycleTestKit"]
|
|
),
|
|
.library(
|
|
name: "UnixSignals",
|
|
targets: ["UnixSignals"]
|
|
),
|
|
],
|
|
dependencies: [
|
|
.package(
|
|
url: "https://github.com/apple/swift-log.git",
|
|
from: "1.14.0"
|
|
),
|
|
.package(
|
|
url: "https://github.com/apple/swift-async-algorithms.git",
|
|
from: "1.1.3"
|
|
),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "ServiceLifecycle",
|
|
dependencies: [
|
|
.product(
|
|
name: "Logging",
|
|
package: "swift-log"
|
|
),
|
|
.product(
|
|
name: "AsyncAlgorithms",
|
|
package: "swift-async-algorithms"
|
|
),
|
|
.target(name: "UnixSignals"),
|
|
.target(name: "ConcurrencyHelpers"),
|
|
]
|
|
),
|
|
.target(
|
|
name: "ServiceLifecycleTestKit",
|
|
dependencies: [
|
|
.target(name: "ServiceLifecycle")
|
|
]
|
|
),
|
|
.target(
|
|
name: "UnixSignals",
|
|
dependencies: [
|
|
.target(name: "ConcurrencyHelpers")
|
|
]
|
|
),
|
|
.target(
|
|
name: "ConcurrencyHelpers"
|
|
),
|
|
.testTarget(
|
|
name: "ServiceLifecycleTests",
|
|
dependencies: [
|
|
.target(name: "ServiceLifecycle"),
|
|
.target(name: "ServiceLifecycleTestKit"),
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "UnixSignalsTests",
|
|
dependencies: [
|
|
.target(name: "UnixSignals")
|
|
]
|
|
),
|
|
]
|
|
)
|