Files
swift-crypto/Benchmarks/Package.swift
T
Si Beaumont 0a26a9e309 [5.x] Align with CryptoKit APIs from Xcode 27 beta 1 (#442)
## Motivation

Xcode 27 beta is now available[^1] with new CryptoKit API so we need to
provide the cross-platform API here.

## Modifications

- Update shared API surface to align with CryptoKit
- Provide backing implementations for non-Apple platforms
- Bump minimum Swift version to 6.2
- Adopt `Lifetimes` language feature
- Provide Dev Container config for maintainers working on Linux backend
- Update CI to 6.2, where required
- Update CMake build
- Remove duplicate tests

## Result

Adopters can try out new APIs via this cross-platform package.

[^1]: https://developer.apple.com/download/all/?q=Xcode%2027
2026-06-08 20:46:03 +01:00

26 lines
823 B
Swift

// swift-tools-version:6.2
import PackageDescription
let package = Package(
name: "swift-crypto-benchmarks",
platforms: [.macOS("14")],
dependencies: [
.package(name: "swift-crypto", path: "../"),
.package(url: "https://github.com/ordo-one/package-benchmark", from: "1.22.0"),
],
targets: [
.executableTarget(
name: "SwiftCryptoBenchmarks",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "CryptoExtras", package: "swift-crypto"),
],
path: "Benchmarks/",
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark")
]
)
]
)