A fast, safe, and efficient CBOR serialization library for Swift on any platform. swiftpackageindex.com/thecoolwinter/CBOR/1.1.1/documentation/cbor
atproto swift cbor

Fix Build For iOS, tvOS, watchOS, visionOS

+4 -4
+2 -2
Sources/CBOR/Decoder/Containers/SingleValueCBORDecodingContainer.swift
··· 103 return value 104 } 105 106 - @available(macOS 15.0, *) 107 func decode(_ type: Int128.Type) throws -> Int128 { 108 try checkType(.uint, .nint, forType: Int128.self) 109 let value = try data.readInt(as: Int128.self) ··· 113 return value 114 } 115 116 - @available(macOS 15.0, *) 117 func decode(_ type: UInt128.Type) throws -> UInt128 { 118 try checkType(.uint, .nint, forType: UInt128.self) 119 let value = try data.readInt(as: UInt128.self)
··· 103 return value 104 } 105 106 + @available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) 107 func decode(_ type: Int128.Type) throws -> Int128 { 108 try checkType(.uint, .nint, forType: Int128.self) 109 let value = try data.readInt(as: Int128.self) ··· 113 return value 114 } 115 116 + @available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) 117 func decode(_ type: UInt128.Type) throws -> UInt128 { 118 try checkType(.uint, .nint, forType: UInt128.self) 119 let value = try data.readInt(as: UInt128.self)
+2 -2
Sources/CBOR/Encoder/Containers/SingleValueCBOREncodingContainer.swift
··· 72 parent.register(IntOptimizer(value: value)) 73 } 74 75 - @available(macOS 15.0, *) 76 func encode(_ value: Int128) throws { 77 parent.register(IntOptimizer(value: value)) 78 } 79 80 - @available(macOS 15.0, *) 81 func encode(_ value: UInt128) throws { 82 parent.register(IntOptimizer(value: value)) 83 }
··· 72 parent.register(IntOptimizer(value: value)) 73 } 74 75 + @available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) 76 func encode(_ value: Int128) throws { 77 parent.register(IntOptimizer(value: value)) 78 } 79 80 + @available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) 81 func encode(_ value: UInt128) throws { 82 parent.register(IntOptimizer(value: value)) 83 }