The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of BSON, reference main (4240cf), with Swift 6.0 for macOS (SPM) on 28 Apr 2025 13:36:38 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/orlandos-nl/BSON.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/orlandos-nl/BSON
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4240cf6 Merge pull request #87 from orlandos-nl/jo/expose-type-identifier
Cloned https://github.com/orlandos-nl/BSON.git
Revision (git rev-parse @):
4240cf68b5d161434034a493741f0ae08cbef017
SUCCESS checkout https://github.com/orlandos-nl/BSON.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/orlandos-nl/BSON.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/18] Write sources
[6/18] Compiling CNIOWindows WSAStartup.c
[6/18] Compiling CNIOWindows shim.c
[8/18] Write sources
[10/18] Compiling CNIOWASI CNIOWASI.c
[11/18] Write swift-version-5BDAB9E9C0126B9D.txt
[12/18] Compiling CNIOLinux liburing_shims.c
[13/18] Compiling CNIOLinux shim.c
[14/42] Compiling _AtomicsShims.c
[15/61] Compiling CNIODarwin shim.c
[17/61] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[18/62] Compiling Atomics Primitives.shims.swift
[19/62] Compiling Atomics AtomicInteger.swift
[20/62] Compiling Atomics ManagedAtomic.swift
[21/62] Compiling Atomics ManagedAtomicLazyReference.swift
[22/62] Compiling Atomics UnsafeAtomic.swift
[23/62] Compiling Atomics UnsafeAtomicLazyReference.swift
[24/62] Emitting module InternalCollectionsUtilities
[25/62] Emitting module _NIOBase64
[26/62] Compiling _NIOBase64 Base64.swift
[27/62] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[28/62] Compiling Atomics AtomicStorage.swift
[29/62] Compiling Atomics AtomicValue.swift
[34/62] Compiling Atomics AtomicMemoryOrderings.swift
[35/62] Compiling Atomics DoubleWord.swift
[36/64] Compiling Atomics AtomicOptionalWrappable.swift
[37/64] Compiling Atomics AtomicReference.swift
[38/64] Compiling Atomics AtomicBool.swift
[39/64] Compiling Atomics IntegerConformances.swift
[40/64] Compiling Atomics OptionalRawRepresentable.swift
[41/64] Compiling Atomics RawRepresentable.swift
[42/64] Compiling Atomics PointerConformances.swift
[43/64] Compiling Atomics Primitives.native.swift
[56/64] Compiling Atomics IntegerOperations.swift
[57/64] Compiling Atomics Unmanaged extensions.swift
[58/80] Emitting module Atomics
[59/80] Compiling _NIODataStructures _TinyArray.swift
[60/80] Compiling DequeModule _DequeSlot.swift
[61/80] Compiling DequeModule _DequeBufferHeader.swift
[62/81] Compiling DequeModule _DequeBuffer.swift
[63/81] Compiling DequeModule _UnsafeWrappedBuffer.swift
[64/81] Compiling DequeModule Deque+Extras.swift
[65/81] Compiling DequeModule Deque+Hashable.swift
[66/81] Compiling DequeModule Deque._UnsafeHandle.swift
[67/81] Compiling DequeModule Deque.swift
[68/81] Compiling DequeModule Deque+Testing.swift
[69/81] Compiling DequeModule Deque._Storage.swift
[70/81] Compiling _NIODataStructures PriorityQueue.swift
[71/81] Compiling DequeModule Deque+Equatable.swift
[72/81] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[73/81] Compiling DequeModule Deque+CustomReflectable.swift
[74/81] Compiling DequeModule Deque+Descriptions.swift
[75/81] Compiling DequeModule Deque+Codable.swift
[76/81] Compiling DequeModule Deque+Collection.swift
[77/81] Emitting module DequeModule
[78/81] Compiling _NIODataStructures Heap.swift
[79/81] Emitting module _NIODataStructures
[79/81] Compiling c-nioatomics.c
[80/81] Compiling c-atomics.c
[82/87] Compiling NIOConcurrencyHelpers lock.swift
[83/87] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[84/87] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[85/87] Emitting module NIOConcurrencyHelpers
[86/87] Compiling NIOConcurrencyHelpers atomics.swift
[87/87] Compiling NIOConcurrencyHelpers NIOLock.swift
[88/148] Compiling NIOCore Interfaces.swift
[89/148] Compiling NIOCore Linux.swift
[90/148] Compiling NIOCore MarkedCircularBuffer.swift
[91/148] Compiling NIOCore MulticastChannel.swift
[92/148] Compiling NIOCore NIOAny.swift
[93/148] Compiling NIOCore NIOCloseOnErrorHandler.swift
[94/154] Compiling NIOCore NIOLoopBound.swift
[95/154] Compiling NIOCore NIOScheduledCallback.swift
[96/154] Compiling NIOCore NIOSendable.swift
[97/154] Compiling NIOCore RecvByteBufferAllocator.swift
[98/154] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[99/154] Compiling NIOCore SocketAddresses.swift
[100/154] Compiling NIOCore GlobalSingletons.swift
[101/154] Compiling NIOCore IO.swift
[102/154] Compiling NIOCore IOData.swift
[103/154] Compiling NIOCore IPProtocol.swift
[104/154] Compiling NIOCore IntegerBitPacking.swift
[105/154] Compiling NIOCore IntegerTypes.swift
[106/154] Compiling NIOCore Codec.swift
[107/154] Compiling NIOCore ConvenienceOptionSupport.swift
[108/154] Compiling NIOCore DeadChannel.swift
[109/154] Compiling NIOCore DispatchQueue+WithFuture.swift
[110/154] Compiling NIOCore EventLoop+Deprecated.swift
[111/154] Compiling NIOCore EventLoop+SerialExecutor.swift
[112/154] Compiling NIOCore EventLoop.swift
[113/154] Compiling NIOCore SocketOptionProvider.swift
[114/154] Compiling NIOCore SystemCallHelpers.swift
[115/154] Compiling NIOCore TimeAmount+Duration.swift
[116/154] Compiling NIOCore TypeAssistedChannelHandler.swift
[117/154] Compiling NIOCore UniversalBootstrapSupport.swift
[118/154] Compiling NIOCore Utilities.swift
[119/154] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[120/154] Compiling NIOCore NIOAsyncWriter.swift
[121/154] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[122/154] Compiling NIOCore BSDSocketAPI.swift
[123/154] Compiling NIOCore ByteBuffer-aux.swift
[124/154] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[125/154] Compiling NIOCore ByteBuffer-conversions.swift
[126/154] Compiling NIOCore Channel.swift
[127/154] Compiling NIOCore ChannelHandler.swift
[128/154] Compiling NIOCore ChannelHandlers.swift
[129/154] Compiling NIOCore ChannelInvoker.swift
[130/154] Compiling NIOCore ChannelOption.swift
[131/154] Compiling NIOCore ChannelPipeline.swift
[132/154] Compiling NIOCore CircularBuffer.swift
[133/154] Compiling NIOCore ByteBuffer-core.swift
[134/154] Compiling NIOCore ByteBuffer-hex.swift
[135/154] Compiling NIOCore ByteBuffer-int.swift
[136/154] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[137/154] Compiling NIOCore ByteBuffer-multi-int.swift
[138/154] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[139/154] Compiling NIOCore ByteBuffer-views.swift
[140/154] Compiling NIOCore AddressedEnvelope.swift
[141/154] Compiling NIOCore AsyncAwaitSupport.swift
[142/154] Compiling NIOCore AsyncChannel.swift
[143/154] Compiling NIOCore AsyncChannelHandler.swift
[144/154] Compiling NIOCore AsyncChannelInboundStream.swift
[145/154] Compiling NIOCore AsyncChannelOutboundWriter.swift
[146/154] Compiling NIOCore NIOAsyncSequenceProducer.swift
[147/154] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[148/154] Compiling NIOCore EventLoopFuture+Deprecated.swift
[149/154] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[150/154] Compiling NIOCore EventLoopFuture.swift
[151/154] Compiling NIOCore FileDescriptor.swift
[152/154] Compiling NIOCore FileHandle.swift
[153/154] Compiling NIOCore FileRegion.swift
[154/154] Emitting module NIOCore
[155/189] Emitting module BSON
[156/192] Compiling BSON RegularExpression.swift
[157/192] Compiling BSON Timestamp.swift
[158/192] Compiling BSON TypeIdentifier.swift
[159/192] Compiling BSON ByteBuffer+Helpers.swift
[160/192] Compiling BSON AnyPrimitive.swift
[161/192] Compiling BSON Binary.swift
[162/192] Compiling BSON Decimal128.swift
[163/192] Compiling BSON KeyedBSONDecodingContainer.swift
[164/192] Compiling BSON PrimitiveDecoding.swift
[165/192] Compiling BSON SingleValueBSONDecodingContainer.swift
[166/192] Compiling BSON UnkeyedBSONDecodingContainer.swift
[167/192] Compiling BSON JavaScript.swift
[168/192] Compiling BSON Null.swift
[169/192] Compiling BSON ObjectId.swift
[170/192] Compiling BSON Optional.swift
[171/192] Compiling BSON PrimitiveConvertible.swift
[172/192] Compiling BSON Primitives.swift
[173/192] Compiling BSON Document+Equatable.swift
[174/192] Compiling BSON Document+Helpers.swift
[175/192] Compiling BSON Document+Mutations.swift
[176/192] Compiling BSON Document+Serialization.swift
[177/192] Compiling BSON Codable.swift
[178/192] Compiling BSON BSONDecoder.swift
[179/192] Compiling BSON BSONDecoderSettings.swift
[180/192] Compiling BSON FastBSONDecoder.swift
[181/192] Compiling BSON BSONEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:84:33: warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 82 |             case .document(let document):
 83 |                 document
 84 |             case .primitive(let primitive):
    |                                 `- warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 85 |                 nil
 86 |             case nil:
/Users/admin/builder/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:174:32: warning: result of call to 'removeValue(forKey:)' is unused
172 |                 self.document?.appendValue(newValue, forKey: converted(key.stringValue))
173 |             } else {
174 |                 self.document?.removeValue(forKey: converted(key.stringValue))
    |                                `- warning: result of call to 'removeValue(forKey:)' is unused
175 |             }
176 |         }
[182/192] Compiling BSON BSONEncoderStrategies.swift
/Users/admin/builder/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:84:33: warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 82 |             case .document(let document):
 83 |                 document
 84 |             case .primitive(let primitive):
    |                                 `- warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 85 |                 nil
 86 |             case nil:
/Users/admin/builder/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:174:32: warning: result of call to 'removeValue(forKey:)' is unused
172 |                 self.document?.appendValue(newValue, forKey: converted(key.stringValue))
173 |             } else {
174 |                 self.document?.removeValue(forKey: converted(key.stringValue))
    |                                `- warning: result of call to 'removeValue(forKey:)' is unused
175 |             }
176 |         }
[183/192] Compiling BSON PrimitiveEncoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:84:33: warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 82 |             case .document(let document):
 83 |                 document
 84 |             case .primitive(let primitive):
    |                                 `- warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 85 |                 nil
 86 |             case nil:
/Users/admin/builder/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:174:32: warning: result of call to 'removeValue(forKey:)' is unused
172 |                 self.document?.appendValue(newValue, forKey: converted(key.stringValue))
173 |             } else {
174 |                 self.document?.removeValue(forKey: converted(key.stringValue))
    |                                `- warning: result of call to 'removeValue(forKey:)' is unused
175 |             }
176 |         }
[184/192] Compiling BSON CustomDebugStringConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:84:33: warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 82 |             case .document(let document):
 83 |                 document
 84 |             case .primitive(let primitive):
    |                                 `- warning: immutable value 'primitive' was never used; consider replacing with '_' or removing it
 85 |                 nil
 86 |             case nil:
/Users/admin/builder/spi-builder-workspace/Sources/BSON/Codable/Encoding/BSONEncoder.swift:174:32: warning: result of call to 'removeValue(forKey:)' is unused
172 |                 self.document?.appendValue(newValue, forKey: converted(key.stringValue))
173 |             } else {
174 |                 self.document?.removeValue(forKey: converted(key.stringValue))
    |                                `- warning: result of call to 'removeValue(forKey:)' is unused
175 |             }
176 |         }
[185/192] Compiling BSON Document+Subscripts.swift
[186/192] Compiling BSON Document+Validation.swift
[187/192] Compiling BSON Document.swift
[188/192] Compiling BSON DocumentSlice.swift
[189/192] Compiling BSON Document+Array.swift
[190/192] Compiling BSON Document+Cache.swift
[191/192] Compiling BSON Document+Collection.swift
[192/192] Compiling BSON Document+Dictionary.swift
Build complete! (22.28s)
Fetching https://github.com/apple/swift-nio.git
[1/75468] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (3.49s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.82.0 (3.17s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1705] Fetching swift-atomics
[53/6058] Fetching swift-atomics, swift-system
[421/22300] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (1.59s)
Fetched https://github.com/apple/swift-system.git from cache (1.59s)
Fetched https://github.com/apple/swift-collections.git from cache (1.59s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.44s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.45s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.59s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.82.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.46.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    }
  ],
  "manifest_display_name" : "BSON",
  "name" : "BSON",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "BSON",
      "targets" : [
        "BSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BSONTests",
      "module_type" : "SwiftTarget",
      "name" : "BSONTests",
      "path" : "Tests/BSONTests",
      "sources" : [
        "BSONCorpusTests.swift",
        "BSONDateDecodingTests.swift",
        "BSONEncoderTests.swift",
        "BSONPublicTests.swift",
        "ObjectIdTests.swift"
      ],
      "target_dependencies" : [
        "BSON"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BSON",
      "module_type" : "SwiftTarget",
      "name" : "BSON",
      "path" : "Sources/BSON",
      "product_dependencies" : [
        "NIOCore"
      ],
      "product_memberships" : [
        "BSON"
      ],
      "sources" : [
        "Codable/Codable.swift",
        "Codable/Decoding/BSONDecoder.swift",
        "Codable/Decoding/BSONDecoderSettings.swift",
        "Codable/Decoding/Fast/FastBSONDecoder.swift",
        "Codable/Decoding/KeyedBSONDecodingContainer.swift",
        "Codable/Decoding/PrimitiveDecoding.swift",
        "Codable/Decoding/SingleValueBSONDecodingContainer.swift",
        "Codable/Decoding/UnkeyedBSONDecodingContainer.swift",
        "Codable/Encoding/BSONEncoder.swift",
        "Codable/Encoding/BSONEncoderStrategies.swift",
        "Codable/Encoding/PrimitiveEncoding.swift",
        "Debugging/CustomDebugStringConvertible.swift",
        "Document/Document+Array.swift",
        "Document/Document+Cache.swift",
        "Document/Document+Collection.swift",
        "Document/Document+Dictionary.swift",
        "Document/Document+Equatable.swift",
        "Document/Document+Helpers.swift",
        "Document/Document+Mutations.swift",
        "Document/Document+Serialization.swift",
        "Document/Document+Subscripts.swift",
        "Document/Document+Validation.swift",
        "Document/Document.swift",
        "Document/DocumentSlice.swift",
        "Helpers/ByteBuffer+Helpers.swift",
        "Types/AnyPrimitive.swift",
        "Types/Binary.swift",
        "Types/Decimal128.swift",
        "Types/JavaScript.swift",
        "Types/Null.swift",
        "Types/ObjectId.swift",
        "Types/Optional.swift",
        "Types/PrimitiveConvertible.swift",
        "Types/Primitives.swift",
        "Types/RegularExpression.swift",
        "Types/Timestamp.swift",
        "Types/TypeIdentifier.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Done.