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
1// swift-tools-version: 6.0
2
3import PackageDescription
4
5let package = Package(
6 name: "Benchmarks",
7 platforms: [.macOS(.v15)],
8 dependencies: [
9 .package(url: "https://github.com/ordo-one/package-benchmark", .upToNextMajor(from: "1.4.0")),
10 .package(path: ".."),
11 .package(url: "https://github.com/valpackett/SwiftCBOR.git", branch: "master"),
12 ],
13 targets: [
14 .executableTarget(
15 name: "Encoding",
16 dependencies: [
17 .product(name: "Benchmark", package: "package-benchmark"),
18 "CBOR",
19 .product(name: "SwiftCBOR", package: "SwiftCBOR"),
20 ],
21 path: "Benchmarks/Encoding",
22 plugins: [
23 .plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
24 ]
25 ),
26
27 .executableTarget(
28 name: "Decoding",
29 dependencies: [
30 .product(name: "Benchmark", package: "package-benchmark"),
31 "CBOR",
32 .product(name: "SwiftCBOR", package: "SwiftCBOR"),
33 ],
34 path: "Benchmarks/Decoding",
35 plugins: [
36 .plugin(name: "BenchmarkPlugin", package: "package-benchmark")
37 ]
38 ),
39 ]
40)