// swift-tools-version: 6.0
// T-iOS-1 scaffold shell. Host / HostStore / KeychainHostStore / SecItemShim /
// InMemoryHostStore / LastSessionStore land in T-iOS-7.
// Dependency direction is strictly downward: HostRegistry → WireProtocol only.
import PackageDescription

let package = Package(
    name: "HostRegistry",
    platforms: [.iOS(.v17), .macOS(.v14)],
    products: [
        .library(name: "HostRegistry", targets: ["HostRegistry"]),
    ],
    dependencies: [
        .package(path: "../WireProtocol"),
    ],
    targets: [
        .target(
            name: "HostRegistry",
            dependencies: [.product(name: "WireProtocol", package: "WireProtocol")]
        ),
        .testTarget(name: "HostRegistryTests", dependencies: ["HostRegistry"]),
    ],
    swiftLanguageModes: [.v6]
)
