Skip to content

Commit 04f7fb4

Browse files
committed
Add sendable checking
1 parent 331374f commit 04f7fb4

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

Package.swift

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,15 @@ let package = Package(
3737
.product(name: "Crypto", package: "swift-crypto"),
3838
.product(name: "_CryptoExtras", package: "swift-crypto"),
3939
.product(name: "Logging", package: "swift-log"),
40-
]
40+
],
41+
swiftSettings: [.enableExperimentalFeature("StrictConcurrency=complete")]
4142
),
42-
.testTarget(name: "WebAuthnTests", dependencies: [
43-
.target(name: "WebAuthn")
44-
])
43+
.testTarget(
44+
name: "WebAuthnTests",
45+
dependencies: [
46+
.target(name: "WebAuthn")
47+
],
48+
swiftSettings: [.enableExperimentalFeature("StrictConcurrency=complete")]
49+
)
4550
]
4651
)

Sources/WebAuthn/Ceremonies/Shared/AuthenticatorAttachment.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/// - SeeAlso: [WebAuthn Level 3 Editor's Draft §5.4.5. Authenticator Attachment Enumeration (enum AuthenticatorAttachment)](https://w3c.github.io/webauthn/#enum-attachment)
1919
/// - SeeAlso: [WebAuthn Level 3 Editor's Draft §6.2.1. Authenticator Attachment Modality](https://w3c.github.io/webauthn/#sctn-authenticator-attachment-modality)
2020
///
21-
public struct AuthenticatorAttachment: UnreferencedStringEnumeration {
21+
public struct AuthenticatorAttachment: UnreferencedStringEnumeration, Sendable {
2222
public var rawValue: String
2323
public init(_ rawValue: String) {
2424
self.rawValue = rawValue

Sources/WebAuthn/Ceremonies/Shared/CredentialType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/// Only ``CredentialType/publicKey`` is supported by WebAuthn.
1818
/// - SeeAlso: [Credential Management Level 1 Editor's Draft §2.1.2. Credential Type Registry](https://w3c.github.io/webappsec-credential-management/#sctn-cred-type-registry)
1919
/// - SeeAlso: [WebAuthn Level 3 Editor's Draft §5.1. PublicKeyCredential Interface](https://w3c.github.io/webauthn/#iface-pkcredential)
20-
public struct CredentialType: UnreferencedStringEnumeration {
20+
public struct CredentialType: UnreferencedStringEnumeration, Sendable {
2121
public var rawValue: String
2222
public init(_ rawValue: String) {
2323
self.rawValue = rawValue

0 commit comments

Comments
 (0)