mirror of
https://github.com/swift-server/swift-service-lifecycle
synced 2026-11-27 05:04:26 +00:00
# Motivation We are about to tag a `2.0.0` and cannot depend on any non major package. # Modification This vendors in `swift-async-algorithms` so that we can use the `AsyncMergeSequence`. In the future, once `swift-async-algorithms` is `1.0.0` itself we can swap back. # Result No more non-major dependency.
93 lines
2.3 KiB
Swift
93 lines
2.3 KiB
Swift
// swift-tools-version:5.6
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-service-lifecycle",
|
|
platforms: [
|
|
.macOS(.v10_15),
|
|
.iOS(.v13),
|
|
.watchOS(.v6),
|
|
.tvOS(.v13),
|
|
],
|
|
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.5.2"
|
|
),
|
|
.package(
|
|
url: "https://github.com/apple/swift-docc-plugin",
|
|
from: "1.0.0"
|
|
),
|
|
.package(
|
|
url: "https://github.com/apple/swift-collections.git",
|
|
from: "1.0.0"
|
|
),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "ServiceLifecycle",
|
|
dependencies: [
|
|
.product(
|
|
name: "Logging",
|
|
package: "swift-log"
|
|
),
|
|
.target(name: "_AsyncMergeSequence"),
|
|
.target(name: "UnixSignals"),
|
|
.target(name: "ConcurrencyHelpers"),
|
|
]
|
|
),
|
|
.target(
|
|
name: "ServiceLifecycleTestKit",
|
|
dependencies: [
|
|
.target(name: "ServiceLifecycle"),
|
|
]
|
|
),
|
|
.target(
|
|
name: "UnixSignals",
|
|
dependencies: [
|
|
.target(name: "ConcurrencyHelpers"),
|
|
]
|
|
),
|
|
.target(
|
|
name: "ConcurrencyHelpers"
|
|
),
|
|
.target(
|
|
name: "_AsyncMergeSequence",
|
|
dependencies: [
|
|
.product(
|
|
name: "DequeModule",
|
|
package: "swift-collections"
|
|
),
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "ServiceLifecycleTests",
|
|
dependencies: [
|
|
.target(name: "ServiceLifecycle"),
|
|
.target(name: "ServiceLifecycleTestKit"),
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "UnixSignalsTests",
|
|
dependencies: [
|
|
.target(name: "UnixSignals"),
|
|
]
|
|
),
|
|
]
|
|
)
|