mirror of
https://github.com/apple/swift-async-algorithms
synced 2026-11-25 04:27:48 +00:00
* Split the marble diagram code out into their own files for easier refactoring * Update latest landing InstantProtocol definition stub * Migrate to a per Task based queue system to avoid blocking valid future jobs * Factor inputs to be specialized waits for side tracking * Add grouping support * Add tests for grouping and parse failures * Fixup misstep in package definition for clock stub imports for the marable diagrams * Add descriptions for partial iterations for debugging aides * Simplify Task.select implementation to handle continuations more encapsulatedly * Add descriptions for WorkQueue items for debugging and use stable work queue drains
38 lines
1.0 KiB
Swift
38 lines
1.0 KiB
Swift
// swift-tools-version: 5.6
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "AsyncAlgorithms",
|
|
platforms: [
|
|
.macOS("10.15"),
|
|
.iOS("13.0"),
|
|
.tvOS("13.0"),
|
|
.watchOS("6.0")
|
|
],
|
|
products: [
|
|
.library(
|
|
name: "AsyncAlgorithms",
|
|
targets: ["AsyncAlgorithms"]),
|
|
.library(name: "ClockStub", type: .static, targets: ["ClockStub"]),
|
|
.library(name: "MarbleDiagram", targets: ["MarbleDiagram"]),
|
|
.library(name: "CMarbleDiagram", type: .static, targets: ["CMarbleDiagram"])
|
|
],
|
|
dependencies: [],
|
|
targets: [
|
|
.target(
|
|
name: "AsyncAlgorithms",
|
|
dependencies: ["ClockStub"]),
|
|
.target(name: "ClockStub"),
|
|
.target(name: "MarbleDiagram", dependencies: ["CMarbleDiagram", "ClockStub"]),
|
|
.target(name: "CMarbleDiagram",
|
|
publicHeadersPath: "Headers",
|
|
cxxSettings: [
|
|
.unsafeFlags(["-std=c++11"])
|
|
]),
|
|
.testTarget(
|
|
name: "AsyncAlgorithmsTests",
|
|
dependencies: ["AsyncAlgorithms", "MarbleDiagram"]),
|
|
]
|
|
)
|