Skip to content

Move SHIM_CRYPTO_SPAN_APIS to a trait that disables the shim#45

Merged
agnosticdev merged 8 commits into
mainfrom
agnosticdev/CryptoTrait
Jul 8, 2026
Merged

Move SHIM_CRYPTO_SPAN_APIS to a trait that disables the shim#45
agnosticdev merged 8 commits into
mainfrom
agnosticdev/CryptoTrait

Conversation

@agnosticdev

Copy link
Copy Markdown
Collaborator

For projects that want to take advantage of the new Crypto Span APIs on Mac they should be able to do so without manually altering the project. For example right now there is a build flag that would manually need to be removed. This change moves the SHIM_CRYPTO_SPAN_APIS flag to a trait named: DISABLE_SHIM_CRYPTO_SPAN_APIS and flips the polarity on it so it will be on by default and then when it needs to be disabled for performance sensitive cases the trait can be passed in to disable this path.

@agnosticdev agnosticdev merged commit 15191de into main Jul 8, 2026
23 checks passed
@agnosticdev agnosticdev deleted the agnosticdev/CryptoTrait branch July 8, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants