Package.swift•2.2 kB
// swift-tools-version: 6.2
import PackageDescription
let approachableConcurrencySettings: [SwiftSetting] = [
.enableExperimentalFeature("StrictConcurrency"),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
.defaultIsolation(MainActor.self),
]
let package = Package(
name: "PeekabooExternalDependencies",
platforms: [
.macOS(.v14),
],
products: [
.library(
name: "PeekabooExternalDependencies",
targets: ["PeekabooExternalDependencies"]),
],
dependencies: [
// External dependencies centralized here
.package(path: "../../AXorcist"),
// 1.1.x is Swift 6.2-ready (we're on Xcode 26.1.1).
.package(url: "https://github.com/apple/swift-async-algorithms", from: "1.1.0"),
.package(url: "https://github.com/apple/swift-algorithms", from: "1.2.1"),
.package(path: "../../Commander"),
.package(url: "https://github.com/apple/swift-log", from: "1.6.4"),
.package(url: "https://github.com/apple/swift-system", from: "1.6.3"),
// Use main to pick up Swift 6 fixes until the next tagged release.
.package(url: "https://github.com/apple/swift-collections", branch: "main"),
.package(url: "https://github.com/ChimeHQ/AsyncXPCConnection", from: "1.3.0"),
],
targets: [
.target(
name: "PeekabooExternalDependencies",
dependencies: [
.product(name: "AXorcist", package: "AXorcist"),
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
.product(name: "Algorithms", package: "swift-algorithms"),
.product(name: "Commander", package: "Commander"),
.product(name: "Logging", package: "swift-log"),
.product(name: "SystemPackage", package: "swift-system"),
.product(name: "OrderedCollections", package: "swift-collections"),
.product(name: "AsyncXPCConnection", package: "AsyncXPCConnection"),
],
swiftSettings: approachableConcurrencySettings),
],
swiftLanguageModes: [.v6])