-
Notifications
You must be signed in to change notification settings - Fork 191
Rename _CryptoExtras Take 2 #407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Sources/Crypto/AEADs/Nonces.swift
Outdated
@@ -31,14 +31,12 @@ public import Foundation | |||
|
|||
|
|||
// MARK: - AES.GCM + Nonce | |||
@available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, macCatalyst 13, visionOS 1.0, *) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Lukasa this was the GYB script removing all of the availability annotations - I'm not sure if this is intended or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not, those annotations should stay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want a separate issue for the gyb file? Looks like it hasn't been touched in a while since it was Python 2.7 up to now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes please. 😄
Thanks Tim, I'll review this shortly. I'm trying to get a catch-up merge to land to the wwdc-25 branch I'm afraid, and this patch will make that nearly impossible: do you mind rebuilding this shortly after that lands? #403 |
Yep no problem |
Ok, the branch is up-to-date, feel free to do the fixup. |
61239b7
to
96ccc4e
Compare
@Lukasa ok updated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To minimise churn, can we add a _CryptoExtras
module that only contains an @_exported import CryptoExtras
? That will make it easier for folks to continue to support a wide range of versions of swift-crypto.
Won't having a product named |
I am...honestly not sure. Historically I've avoided wanting to do that to avoid any risk of the code being generated twice. |
Ok updated it, I tried to use it with JWTKit without the new module and the compiler fell over so looks like it is needed |
@@ -0,0 +1 @@ | |||
@_exported import CryptoExtras |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still needs a license header on it, strangely.
The format checker has some notes. |
API breakage is expected, merging over it. |
Following on from #281, opened as a new PR as the conflicts were too many
Checklist
If you've made changes to
gyb
files.script/generate_boilerplate_files_with_gyb
and included updated generated files in a commit of this pull requestMotivation:
[Explain here the context, and why you're making that change. What is the problem you're trying to solve.]
Modifications:
[Describe the modifications you've done.]
Result:
[After your change, what will change.]