mirror of
https://github.com/apple/swift-crypto
synced 2026-11-23 04:34:21 +00:00
Motivation: When using only the CryptoKit API on Apple platforms we have always thunked through to the CryptoKit interface and implementation. However, we didn't do a thorough job of preventing the BoringSSL target from getting compiled and linked. We can do a better job now, which will save compile times and binary sizes in many cases. Modifications: - Change Package.swift to express a target specific dependency in most cases. - Preserve a development mode which overrides that target specific dependency. - Add the missing compile guards. Results: Smaller binaries and faster compiles on Apple platforms.