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

Maybe fix test extension on linux

+8 -1
+8 -1
Tests/CBORTests/Extensions/Data+hexString.swift
··· 12 12 #endif 13 13 14 14 extension Data { 15 + private static let hexAlphabet = Array("0123456789abcdef".unicodeScalars) 16 + 15 17 func hexString() -> String { 16 - map { String(format: "%02hhX", $0) }.joined() 18 + // I'd rather use: map { String(format: "%02hhX", $0) }.joined() 19 + // but that doesn't compile on linux... 20 + String(reduce(into: "".unicodeScalars) { result, value in 21 + result.append(Self.hexAlphabet[Int(value / 0x10)]) 22 + result.append(Self.hexAlphabet[Int(value % 0x10)]) 23 + }) 17 24 } 18 25 }