mirror of
https://github.com/apple/swift-crypto
synced 2026-11-26 04:47:49 +00:00
## 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
26 lines
823 B
Swift
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")
|
|
]
|
|
)
|
|
]
|
|
)
|