mirror of
https://github.com/apple/swift-crypto
synced 2026-11-25 04:47:47 +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
27 lines
1.1 KiB
Swift
27 lines
1.1 KiB
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftCrypto open source project
|
|
//
|
|
// Copyright (c) 2024-2026 Apple Inc. and the SwiftCrypto project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftCrypto project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// On Apple platforms the Crypto module re-exports CryptoKit and produces no
|
|
// symbols of its own. When Xcode 26+ builds SPM packages as dynamic
|
|
// frameworks (e.g. for test-target dependencies), an empty module generates a
|
|
// framework directory with no Mach-O binary, causing a linker error.
|
|
//
|
|
// This symbol ensures at least one exported entry is always present in the
|
|
// binary, regardless of how the package is linked.
|
|
// See: https://github.com/apple/swift-crypto/issues/435
|
|
|
|
@usableFromInline
|
|
@available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, macCatalyst 13, visionOS 1.0, *)
|
|
internal func _cryptoModuleAnchor() {}
|