Skip to content

Move SHIM_CRYPTO_SPAN_APIS to a trait that disables the shim#45

Open
agnosticdev wants to merge 8 commits into
mainfrom
agnosticdev/CryptoTrait
Open

Move SHIM_CRYPTO_SPAN_APIS to a trait that disables the shim#45
agnosticdev wants to merge 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.

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.

2 participants