// swift-tools-version: 6.0

import PackageDescription

let package = Package(
    name: "CubeKit",
    platforms: [
        .macOS(.v15),
        .iOS(.v18),
        .visionOS(.v2),
    ],
    products: [
        .library(
            name: "CubeKit",
            targets: ["CubeKit"]
        ),
    ],
    dependencies: [
        .package(url: "https://github.com/apple/swift-crypto.git", from: "3.10.0"),
    ],
    targets: [
        .target(
            name: "CCubeKit"
        ),
        .target(
            name: "CubeKit",
            dependencies: [
                "CCubeKit",
                .product(name: "Crypto", package: "swift-crypto"),
                .product(name: "_CryptoExtras", package: "swift-crypto"),
            ],
            swiftSettings: [
                .swiftLanguageMode(.v5),
            ]
        ),
        .testTarget(
            name: "CubeKitTests",
            dependencies: ["CubeKit"]
        ),
    ]
)
