Peekaboo/peekaboo-cli/Package.swift
Peter Steinberger c04b8e7af0 Migrate to Swift 6 with strict concurrency
- Update to swift-tools-version 6.0 and enable StrictConcurrency
- Make all data models and types Sendable for concurrency safety
- Migrate commands from ParsableCommand to AsyncParsableCommand
- Remove AsyncUtils.swift and synchronous bridging patterns
- Update WindowBounds property names to snake_case for consistency
- Ensure all error types conform to Sendable protocol
- Add comprehensive Swift 6 migration documentation

This migration enables full Swift 6 concurrency checking and data race
safety while maintaining backward compatibility with the existing API.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 11:23:10 +01:00

36 lines
914 B
Swift

// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "peekaboo",
platforms: [
.macOS(.v15)
],
products: [
.executable(
name: "peekaboo",
targets: ["peekaboo"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0")
],
targets: [
.executableTarget(
name: "peekaboo",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser")
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
.testTarget(
name: "peekabooTests",
dependencies: ["peekaboo"],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
)
]
)