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 UBJSONSerialization, reference 2.0.4 (3da015), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 11:38:45 UTC.

Swift 6 data race errors: 18

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/frizlab/ubjsonserialization.git
Reference: 2.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/frizlab/ubjsonserialization
 * tag               2.0.4      -> FETCH_HEAD
HEAD is now at 3da0153 Fix writing to OutputStream
Cloned https://github.com/frizlab/ubjsonserialization.git
Revision (git rev-parse @):
3da0153f9f9e3eaa05e1efa2e087d6eba64c92b0
SUCCESS checkout https://github.com/frizlab/ubjsonserialization.git at 2.0.4
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/Frizlab/stream-reader.git
[1/995] Fetching stream-reader
[41/4914] Fetching stream-reader, swift-system
Fetched https://github.com/Frizlab/stream-reader.git from cache (1.07s)
Fetched https://github.com/apple/swift-system.git from cache (1.07s)
Computing version for https://github.com/Frizlab/stream-reader.git
Computed https://github.com/Frizlab/stream-reader.git at 3.2.3 (0.58s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.0.0 (0.57s)
Creating working copy for https://github.com/Frizlab/stream-reader.git
Working copy of https://github.com/Frizlab/stream-reader.git resolved at 3.2.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "ubjsonserialization",
      "name": "UBJSONSerialization",
      "url": "https://github.com/frizlab/ubjsonserialization.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ubjsonserialization",
      "dependencies": [
        {
          "identity": "stream-reader",
          "name": "stream-reader",
          "url": "https://github.com/Frizlab/stream-reader.git",
          "version": "3.5.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/stream-reader",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/frizlab/ubjsonserialization.git
[1/351] Fetching ubjsonserialization
Fetched https://github.com/frizlab/ubjsonserialization.git from cache (0.79s)
Fetching https://github.com/Frizlab/stream-reader.git from cache
Fetched https://github.com/Frizlab/stream-reader.git from cache (0.47s)
Computing version for https://github.com/Frizlab/stream-reader.git
Computed https://github.com/Frizlab/stream-reader.git at 3.5.2 (0.56s)
Creating working copy for https://github.com/Frizlab/stream-reader.git
Working copy of https://github.com/Frizlab/stream-reader.git resolved at 3.5.2
Creating working copy for https://github.com/frizlab/ubjsonserialization.git
Working copy of https://github.com/frizlab/ubjsonserialization.git resolved at 2.0.4 (3da0153)
warning: '.resolve-product-dependencies': dependency 'ubjsonserialization' is not used by any target
Found 1 product dependencies
  - stream-reader
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/frizlab/ubjsonserialization.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/5] Write sources
[3/5] Compiling CSystem shims.c
[4/5] Write swift-version--7754E27361AE5C74.txt
[6/26] Emitting module SystemPackage
[7/28] Compiling SystemPackage Syscalls.swift
[8/28] Compiling SystemPackage WindowsSyscallAdapters.swift
[9/28] Compiling SystemPackage PlatformString.swift
[10/28] Compiling SystemPackage SystemString.swift
[11/28] Compiling SystemPackage FilePathComponents.swift
[12/28] Compiling SystemPackage FilePathParsing.swift
[13/28] Compiling SystemPackage CInterop.swift
[14/28] Compiling SystemPackage Constants.swift
[15/28] Compiling SystemPackage FilePathString.swift
[16/28] Compiling SystemPackage FilePathSyntax.swift
[17/28] Compiling SystemPackage Exports.swift
[18/28] Compiling SystemPackage Mocking.swift
[19/28] Compiling SystemPackage FileOperations.swift
[20/28] Compiling SystemPackage FilePath.swift
[21/28] Compiling SystemPackage FilePathComponentView.swift
[22/28] Compiling SystemPackage FilePathWindows.swift
[23/28] Compiling SystemPackage FilePermissions.swift
[24/28] Compiling SystemPackage Errno.swift
[25/28] Compiling SystemPackage FileDescriptor.swift
[26/28] Compiling SystemPackage FileHelpers.swift
[27/28] Compiling SystemPackage Util.swift
[28/28] Compiling SystemPackage UtilConsumers.swift
[29/37] Compiling StreamReader Utils.swift
[30/37] Compiling StreamReader StreamReaderError.swift
[31/37] Compiling StreamReader DataReader.swift
[32/37] Compiling StreamReader GenericStreamReader.swift
[33/37] Compiling StreamReader FileHandleReader.swift
[34/37] Compiling StreamReader FileDescriptorReader.swift
[35/37] Compiling StreamReader InputStreamReader.swift
[36/37] Compiling StreamReader StreamReader.swift
[37/37] Emitting module StreamReader
[38/44] Compiling UBJSONSerialization UBJSONSpec8Serialization.swift
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:27:21: warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSpec8Serialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 25 | 		/**
 26 | 		 Do not convert Int8, Int16, etc. to Int. */
 27 | 		public static let keepIntPrecision = ReadingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'keepIntPrecision' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:38:21: warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSpec8Serialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 36 | 		 You can use something like [BigInt](https://github.com/lorentey/BigInt) to handle big integers.
 37 | 		 Note high-precision numbers can also be decimals. */
 38 | 		public static let allowHighPrecisionNumbers = ReadingOptions(rawValue: 1 << 1)
    |                     |- warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'allowHighPrecisionNumbers' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:46:21: warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSpec8Serialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 44 | 		 - Note: This applies only to `No-Op` elements at the root of the UBJSON document being deserialized.
 45 | 		 For embedded `No-Op`s, see `.keepNopElementsInArrays`. */
 46 | 		public static let returnNopElements = ReadingOptions(rawValue: 1 << 2)
    |                     |- warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'returnNopElements' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:58:21: warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSpec8Serialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 56 | 		 `No-Op` in a dictionary has no meaning and is always **skipped** for indeterminate size dictionaries
 57 | 		 (`No-Op` is invalid in a dictionary whose size is known). */
 58 | 		public static let keepNopElementsInArrays = ReadingOptions(rawValue: 1 << 3)
    |                     |- warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'keepNopElementsInArrays' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |
 60 | 		public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:73:21: warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | 	}
 65 |
 66 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 67 |
 68 | 		public let rawValue: Int
    :
 71 | 		 Normalize the representation of high precisions numbers before serialization.
 72 | 		 See the doc of HighPrecisionNumber for more information about normalization. */
 73 | 		public static let normalizeHighPrecisionNumbers = WritingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'normalizeHighPrecisionNumbers' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 74 |
 75 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:80:21: warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | 	}
 65 |
 66 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 67 |
 68 | 		public let rawValue: Int
    :
 78 | 		 - Note: This option is always on for `Int` objects.
 79 | 		 It has to be specifically asked only for other ints types (`Int8`, `Int16`, etc.) */
 80 | 		public static let optimizeIntsForSize = WritingOptions(rawValue: 1 << 1)
    |                     |- warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'optimizeIntsForSize' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 81 |
 82 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:88:21: warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | 	}
 65 |
 66 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 67 |
 68 | 		public let rawValue: Int
    :
 86 | 		 - Note: This option is expensive (has to do a first pass through the whole serialized object graph before serialization).
 87 | 		 Only use it in case there is a chance your data contains `No-op` elements and you want it dropped. */
 88 | 		public static let skipNopElementsInArrays = WritingOptions(rawValue: 1 << 2)
    |                     |- warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'skipNopElementsInArrays' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 89 |
 90 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:93:21: warning: static property 'declareContainerWithUnknownSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | 	}
 65 |
 66 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 67 |
 68 | 		public let rawValue: Int
    :
 91 | 		 Declare the containers to have an unknown size in the serialized data.
 92 | 		 Mostly useful if we want to implement proper streaming support later. */
 93 | 		public static let declareContainerWithUnknownSize = WritingOptions(rawValue: 1 << 3)
    |                     |- warning: static property 'declareContainerWithUnknownSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'declareContainerWithUnknownSize' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 94 |
 95 | 		public init(rawValue v: Int) {
[39/44] Compiling UBJSONSerialization Utils.swift
[40/44] Compiling UBJSONSerialization UBJSONSerializationErrors.swift
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerializationErrors.swift:49:7: warning: associated value 'invalidUBJSONObject(invalidElement:)' of 'Sendable'-conforming enum 'UBJSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
47 | 	 An invalid UBJSON object was given to be serialized.
48 | 	 The invalid element is passed in argument to this error. */
49 | 	case invalidUBJSONObject(invalidElement: Any)
   |       `- warning: associated value 'invalidUBJSONObject(invalidElement:)' of 'Sendable'-conforming enum 'UBJSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
50 |
51 | 	/* Spec 8 error */
[41/44] Emitting module UBJSONSerialization
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/HighPrecisionNumber.swift:91:100: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
 89 | 			}
 90 |
 91 | 			mutating func parse() -> (hasNegativeSign: Bool, unsignedIntPart: [Digit], parsedLength: String.IndexDistance) {
    |                                                                                                    `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
 92 | 				engine = Parser.waitStart
 93 |
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/Nop.swift:21:20: warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 |  It should be used pretty much only when we have proper streaming support to send ``Nop`` values in a stream to keep it alive. */
19 | public struct Nop : Equatable {
   |               `- note: consider making struct 'Nop' conform to the 'Sendable' protocol
20 |
21 | 	public static let sharedNop = Nop()
   |                    |- warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'sharedNop' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | 	public static func ==(lhs: Nop,  rhs: Nop) -> Bool {return true}
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:27:21: warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSerialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 25 | 		/**
 26 | 		 Do not convert Int8, Int16, etc. to Int. */
 27 | 		public static let keepIntPrecision = ReadingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'keepIntPrecision' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:38:21: warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSerialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 36 | 		 You can use something like [BigInt](https://github.com/lorentey/BigInt) to handle big integers.
 37 | 		 Note high-precision numbers can also be decimals. */
 38 | 		public static let allowHighPrecisionNumbers = ReadingOptions(rawValue: 1 << 1)
    |                     |- warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'allowHighPrecisionNumbers' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:46:21: warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSerialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 44 | 		 - Note: This applies only to `No-Op` elements at the root of the UBJSON document being deserialized.
 45 | 		 For embedded `No-Op`s, see `.keepNopElementsInArrays`. */
 46 | 		public static let returnNopElements = ReadingOptions(rawValue: 1 << 2)
    |                     |- warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'returnNopElements' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:57:21: warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSerialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 55 | 		 - Note: ``Nop`` in a dictionary has no meaning and is always **skipped**
 56 | 		 (it is NOT (AFAICT) invalid to have a Nop element before a value in a dictionary in a non-optimized dictionary; the `No-Op` is simply skipped). */
 57 | 		public static let keepNopElementsInArrays = ReadingOptions(rawValue: 1 << 3)
    |                     |- warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'keepNopElementsInArrays' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |
 59 | 		public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:72:21: warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 63 | 	}
 64 |
 65 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 66 |
 67 | 		public let rawValue: Int
    :
 70 | 		 Normalize the representation of high precisions numbers before serialization.
 71 | 		 See ``HighPrecisionNumber`` for more information about normalization. */
 72 | 		public static let normalizeHighPrecisionNumbers = WritingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'normalizeHighPrecisionNumbers' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |
 74 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:79:21: warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 63 | 	}
 64 |
 65 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 66 |
 67 | 		public let rawValue: Int
    :
 77 | 		 - Note: This option is always on for `Int` objects.
 78 | 		 It has to be specifically asked only for other ints types (`Int8`, `Int16`, etc.) */
 79 | 		public static let optimizeIntsForSize = WritingOptions(rawValue: 1 << 1)
    |                     |- warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'optimizeIntsForSize' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 80 |
 81 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:87:21: warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 63 | 	}
 64 |
 65 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 66 |
 67 | 		public let rawValue: Int
    :
 85 | 		 - Note: This option is expensive (has to do a first pass through the whole serialized object graph before serialization).
 86 | 		 Only use it in case there is a chance your data contains `No-op` elements and you want it dropped. */
 87 | 		public static let skipNopElementsInArrays = WritingOptions(rawValue: 1 << 2)
    |                     |- warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'skipNopElementsInArrays' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 88 |
 89 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:98:21: warning: static property 'enableContainerOptimization' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 63 | 	}
 64 |
 65 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 66 |
 67 | 		public let rawValue: Int
    :
 96 | 		 (the count of the container is specified but not its type) because I don't think it has any advantages over the JSON-like representation.
 97 | 		 I’d be happy to change my mind if somebody can give me good arguments in favor of this optimization :) */
 98 | 		public static let enableContainerOptimization = WritingOptions(rawValue: 1 << 3)
    |                     |- warning: static property 'enableContainerOptimization' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'enableContainerOptimization' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 99 |
100 | 		public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerializationErrors.swift:49:7: warning: associated value 'invalidUBJSONObject(invalidElement:)' of 'Sendable'-conforming enum 'UBJSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
47 | 	 An invalid UBJSON object was given to be serialized.
48 | 	 The invalid element is passed in argument to this error. */
49 | 	case invalidUBJSONObject(invalidElement: Any)
   |       `- warning: associated value 'invalidUBJSONObject(invalidElement:)' of 'Sendable'-conforming enum 'UBJSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
50 |
51 | 	/* Spec 8 error */
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:27:21: warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSpec8Serialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 25 | 		/**
 26 | 		 Do not convert Int8, Int16, etc. to Int. */
 27 | 		public static let keepIntPrecision = ReadingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'keepIntPrecision' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:38:21: warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSpec8Serialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 36 | 		 You can use something like [BigInt](https://github.com/lorentey/BigInt) to handle big integers.
 37 | 		 Note high-precision numbers can also be decimals. */
 38 | 		public static let allowHighPrecisionNumbers = ReadingOptions(rawValue: 1 << 1)
    |                     |- warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'allowHighPrecisionNumbers' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:46:21: warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSpec8Serialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 44 | 		 - Note: This applies only to `No-Op` elements at the root of the UBJSON document being deserialized.
 45 | 		 For embedded `No-Op`s, see `.keepNopElementsInArrays`. */
 46 | 		public static let returnNopElements = ReadingOptions(rawValue: 1 << 2)
    |                     |- warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'returnNopElements' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:58:21: warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSpec8Serialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 56 | 		 `No-Op` in a dictionary has no meaning and is always **skipped** for indeterminate size dictionaries
 57 | 		 (`No-Op` is invalid in a dictionary whose size is known). */
 58 | 		public static let keepNopElementsInArrays = ReadingOptions(rawValue: 1 << 3)
    |                     |- warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'keepNopElementsInArrays' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |
 60 | 		public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:73:21: warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | 	}
 65 |
 66 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 67 |
 68 | 		public let rawValue: Int
    :
 71 | 		 Normalize the representation of high precisions numbers before serialization.
 72 | 		 See the doc of HighPrecisionNumber for more information about normalization. */
 73 | 		public static let normalizeHighPrecisionNumbers = WritingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'normalizeHighPrecisionNumbers' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 74 |
 75 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:80:21: warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | 	}
 65 |
 66 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 67 |
 68 | 		public let rawValue: Int
    :
 78 | 		 - Note: This option is always on for `Int` objects.
 79 | 		 It has to be specifically asked only for other ints types (`Int8`, `Int16`, etc.) */
 80 | 		public static let optimizeIntsForSize = WritingOptions(rawValue: 1 << 1)
    |                     |- warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'optimizeIntsForSize' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 81 |
 82 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:88:21: warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | 	}
 65 |
 66 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 67 |
 68 | 		public let rawValue: Int
    :
 86 | 		 - Note: This option is expensive (has to do a first pass through the whole serialized object graph before serialization).
 87 | 		 Only use it in case there is a chance your data contains `No-op` elements and you want it dropped. */
 88 | 		public static let skipNopElementsInArrays = WritingOptions(rawValue: 1 << 2)
    |                     |- warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'skipNopElementsInArrays' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 89 |
 90 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:93:21: warning: static property 'declareContainerWithUnknownSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | 	}
 65 |
 66 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 67 |
 68 | 		public let rawValue: Int
    :
 91 | 		 Declare the containers to have an unknown size in the serialized data.
 92 | 		 Mostly useful if we want to implement proper streaming support later. */
 93 | 		public static let declareContainerWithUnknownSize = WritingOptions(rawValue: 1 << 3)
    |                     |- warning: static property 'declareContainerWithUnknownSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'declareContainerWithUnknownSize' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 94 |
 95 | 		public init(rawValue v: Int) {
[42/44] Compiling UBJSONSerialization UBJSONSerialization.swift
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:27:21: warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSerialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 25 | 		/**
 26 | 		 Do not convert Int8, Int16, etc. to Int. */
 27 | 		public static let keepIntPrecision = ReadingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'keepIntPrecision' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:38:21: warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSerialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 36 | 		 You can use something like [BigInt](https://github.com/lorentey/BigInt) to handle big integers.
 37 | 		 Note high-precision numbers can also be decimals. */
 38 | 		public static let allowHighPrecisionNumbers = ReadingOptions(rawValue: 1 << 1)
    |                     |- warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'allowHighPrecisionNumbers' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |
 40 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:46:21: warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSerialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 44 | 		 - Note: This applies only to `No-Op` elements at the root of the UBJSON document being deserialized.
 45 | 		 For embedded `No-Op`s, see `.keepNopElementsInArrays`. */
 46 | 		public static let returnNopElements = ReadingOptions(rawValue: 1 << 2)
    |                     |- warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'returnNopElements' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:57:21: warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 19 | final public class UBJSONSerialization {
 20 |
 21 | 	public struct ReadingOptions : OptionSet {
    |                `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
 22 |
 23 | 		public let rawValue: Int
    :
 55 | 		 - Note: ``Nop`` in a dictionary has no meaning and is always **skipped**
 56 | 		 (it is NOT (AFAICT) invalid to have a Nop element before a value in a dictionary in a non-optimized dictionary; the `No-Op` is simply skipped). */
 57 | 		public static let keepNopElementsInArrays = ReadingOptions(rawValue: 1 << 3)
    |                     |- warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'keepNopElementsInArrays' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |
 59 | 		public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:72:21: warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 63 | 	}
 64 |
 65 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 66 |
 67 | 		public let rawValue: Int
    :
 70 | 		 Normalize the representation of high precisions numbers before serialization.
 71 | 		 See ``HighPrecisionNumber`` for more information about normalization. */
 72 | 		public static let normalizeHighPrecisionNumbers = WritingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'normalizeHighPrecisionNumbers' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |
 74 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:79:21: warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 63 | 	}
 64 |
 65 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 66 |
 67 | 		public let rawValue: Int
    :
 77 | 		 - Note: This option is always on for `Int` objects.
 78 | 		 It has to be specifically asked only for other ints types (`Int8`, `Int16`, etc.) */
 79 | 		public static let optimizeIntsForSize = WritingOptions(rawValue: 1 << 1)
    |                     |- warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'optimizeIntsForSize' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 80 |
 81 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:87:21: warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 63 | 	}
 64 |
 65 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 66 |
 67 | 		public let rawValue: Int
    :
 85 | 		 - Note: This option is expensive (has to do a first pass through the whole serialized object graph before serialization).
 86 | 		 Only use it in case there is a chance your data contains `No-op` elements and you want it dropped. */
 87 | 		public static let skipNopElementsInArrays = WritingOptions(rawValue: 1 << 2)
    |                     |- warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'skipNopElementsInArrays' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 88 |
 89 | 		/**
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:98:21: warning: static property 'enableContainerOptimization' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 63 | 	}
 64 |
 65 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 66 |
 67 | 		public let rawValue: Int
    :
 96 | 		 (the count of the container is specified but not its type) because I don't think it has any advantages over the JSON-like representation.
 97 | 		 I’d be happy to change my mind if somebody can give me good arguments in favor of this optimization :) */
 98 | 		public static let enableContainerOptimization = WritingOptions(rawValue: 1 << 3)
    |                     |- warning: static property 'enableContainerOptimization' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'enableContainerOptimization' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 99 |
100 | 		public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/Nop.swift:21:20: warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 |  It should be used pretty much only when we have proper streaming support to send ``Nop`` values in a stream to keep it alive. */
19 | public struct Nop : Equatable {
   |               `- note: consider making struct 'Nop' conform to the 'Sendable' protocol
20 |
21 | 	public static let sharedNop = Nop()
   |                    |- warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'sharedNop' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | 	public static func ==(lhs: Nop,  rhs: Nop) -> Bool {return true}
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:877:10: warning: type 'S.Element' is not optional, value can never be nil; this is an error in the Swift 6 language mode
875 | 				case _ as Nop: return nil
876 |
877 | 				case nil:                    newType = .null
    |          `- warning: type 'S.Element' is not optional, value can never be nil; this is an error in the Swift 6 language mode
878 | 				case let b as Bool where  b: newType = .`true`
879 | 				case let b as Bool where !b: newType = .`false`
[43/44] Compiling UBJSONSerialization Nop.swift
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/Nop.swift:21:20: warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 |  It should be used pretty much only when we have proper streaming support to send ``Nop`` values in a stream to keep it alive. */
19 | public struct Nop : Equatable {
   |               `- note: consider making struct 'Nop' conform to the 'Sendable' protocol
20 |
21 | 	public static let sharedNop = Nop()
   |                    |- warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'sharedNop' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | 	public static func ==(lhs: Nop,  rhs: Nop) -> Bool {return true}
[44/44] Compiling UBJSONSerialization HighPrecisionNumber.swift
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/HighPrecisionNumber.swift:91:100: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
 89 | 			}
 90 |
 91 | 			mutating func parse() -> (hasNegativeSign: Bool, unsignedIntPart: [Digit], parsedLength: String.IndexDistance) {
    |                                                                                                    `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
 92 | 				engine = Parser.waitStart
 93 |
/Users/admin/builder/spi-builder-workspace/Sources/UBJSONSerialization/HighPrecisionNumber.swift:109:28: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
107 |
108 | 			var parser = Parser(parsedString: String(stringValue[startIndex...]), allowLeadingZeroOrPlus: allowLeadingZeroOrPlus)
109 | 			let parseOffset: String.IndexDistance; (hasNegativeSign, unsignedIntPart, parseOffset) = parser.parse()
    |                            `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
110 | 			startIndex = stringValue.index(startIndex, offsetBy: parseOffset)
111 |
Build complete! (19.72s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "stream-reader",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Frizlab/stream-reader.git"
    }
  ],
  "manifest_display_name" : "UBJSONSerialization",
  "name" : "UBJSONSerialization",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "UBJSONSerialization",
      "targets" : [
        "UBJSONSerialization"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UBJSONSerializationTests",
      "module_type" : "SwiftTarget",
      "name" : "UBJSONSerializationTests",
      "path" : "Tests/UBJSONSerializationTests",
      "sources" : [
        "HighPrecisionNumberTests.swift",
        "TestHelpers.swift",
        "UBJSONSerializationTests.swift",
        "UBJSONSpec8SerializationTests.swift"
      ],
      "target_dependencies" : [
        "UBJSONSerialization"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UBJSONSerialization",
      "module_type" : "SwiftTarget",
      "name" : "UBJSONSerialization",
      "path" : "Sources/UBJSONSerialization",
      "product_dependencies" : [
        "StreamReader"
      ],
      "product_memberships" : [
        "UBJSONSerialization"
      ],
      "sources" : [
        "HighPrecisionNumber.swift",
        "Nop.swift",
        "UBJSONSerialization.swift",
        "UBJSONSerializationErrors.swift",
        "UBJSONSpec8Serialization.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.