apple / swift-crypto

Open-source implementation of a substantial portion of the API of Apple CryptoKit suitable for use on Linux platforms.
https://apple.github.io/swift-crypto
Apache License 2.0
1.47k stars 166 forks source link

Set CRYPTO_IN_SWIFTPM #177

Closed etcwilde closed 1 year ago

etcwilde commented 1 year ago

Needed to expose SecureEncalve through SwiftCrypto when building for Swift-Certificates. CRYPTO_IN_SWIFTPM is set all of the time in package.swift, while CRYPTO_IN_SWIFTPM_FORCE_BUILD_API is only set in development. Lets enable the one that's on all of the time, and remove the one that isn't so that we get our declarations.

Since CRYPTO_IN_SWIFTPM is enabled all of the time, would it make sense to not have it? Or what exactly is it used for?

yim-lee commented 1 year ago

@swift-server-bot add to allowlist

yim-lee commented 1 year ago

@swift-server-bot test this please