diff --git a/Sources/XMLCoder/Auxiliaries/Attribute.swift b/Sources/XMLCoder/Auxiliaries/Attribute.swift index 6f6dcdc5..a908bee0 100644 --- a/Sources/XMLCoder/Auxiliaries/Attribute.swift +++ b/Sources/XMLCoder/Auxiliaries/Attribute.swift @@ -40,6 +40,7 @@ extension Attribute: Codable where Value: Codable { extension Attribute: Equatable where Value: Equatable {} extension Attribute: Hashable where Value: Hashable {} +extension Attribute: Sendable where Value: Sendable {} extension Attribute: ExpressibleByIntegerLiteral where Value: ExpressibleByIntegerLiteral { public typealias IntegerLiteralType = Value.IntegerLiteralType diff --git a/Sources/XMLCoder/Auxiliaries/Element.swift b/Sources/XMLCoder/Auxiliaries/Element.swift index 57a2b7dd..8728e4ac 100644 --- a/Sources/XMLCoder/Auxiliaries/Element.swift +++ b/Sources/XMLCoder/Auxiliaries/Element.swift @@ -40,3 +40,4 @@ extension Element: Codable where Value: Codable { extension Element: Equatable where Value: Equatable {} extension Element: Hashable where Value: Hashable {} +extension Element: Sendable where Value: Sendable {} diff --git a/Sources/XMLCoder/Auxiliaries/ElementAndAttribute.swift b/Sources/XMLCoder/Auxiliaries/ElementAndAttribute.swift index 69d6c02b..b04cfc56 100644 --- a/Sources/XMLCoder/Auxiliaries/ElementAndAttribute.swift +++ b/Sources/XMLCoder/Auxiliaries/ElementAndAttribute.swift @@ -41,3 +41,4 @@ extension ElementAndAttribute: Codable where Value: Codable { extension ElementAndAttribute: Equatable where Value: Equatable {} extension ElementAndAttribute: Hashable where Value: Hashable {} +extension ElementAndAttribute: Sendable where Value: Sendable {} diff --git a/Sources/XMLCoder/Auxiliaries/XMLCoderElement.swift b/Sources/XMLCoder/Auxiliaries/XMLCoderElement.swift index 293f612c..4cf61d91 100644 --- a/Sources/XMLCoder/Auxiliaries/XMLCoderElement.swift +++ b/Sources/XMLCoder/Auxiliaries/XMLCoderElement.swift @@ -8,8 +8,8 @@ import Foundation -struct XMLCoderElement: Equatable { - struct Attribute: Equatable { +struct XMLCoderElement: Equatable, Sendable { + struct Attribute: Equatable, Sendable { let key: String let value: String } diff --git a/Sources/XMLCoder/Auxiliaries/XMLHeader.swift b/Sources/XMLCoder/Auxiliaries/XMLHeader.swift index dd0e5915..6770a20c 100644 --- a/Sources/XMLCoder/Auxiliaries/XMLHeader.swift +++ b/Sources/XMLCoder/Auxiliaries/XMLHeader.swift @@ -11,7 +11,7 @@ import Foundation /// Type that allows overriding XML header during encoding. Pass a value of this type to the `encode` /// function of `XMLEncoder` to specify the exact value of the header you'd like to see in the encoded /// data. -public struct XMLHeader { +public struct XMLHeader: Sendable { /// The XML standard that the produced document conforms to. public let version: Double? diff --git a/Sources/XMLCoder/Auxiliaries/XMLKey.swift b/Sources/XMLCoder/Auxiliaries/XMLKey.swift index 0761f19e..f7f31f32 100644 --- a/Sources/XMLCoder/Auxiliaries/XMLKey.swift +++ b/Sources/XMLCoder/Auxiliaries/XMLKey.swift @@ -9,7 +9,7 @@ import Foundation /// Shared Key Types -struct XMLKey: CodingKey { +struct XMLKey: CodingKey, Sendable { public let stringValue: String public let intValue: Int?