Build Information
Successful build of Athena, reference main (a4e351
), with Swift 6.0 for Linux on 29 Nov 2024 13:30:06 UTC.
Swift 6 data race errors: 9
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vsanthanam/Athena.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/vsanthanam/Athena
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a4e3517 Add custom string interpolation for `JSONEncodable` conforming types (#26)
Cloned https://github.com/vsanthanam/Athena.git
Revision (git rev-parse @):
a4e3517d00cf0bbef9dc3c7f7b972b3024ff8a76
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vsanthanam/Athena.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/vsanthanam/Athena.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/nicklockwood/SwiftFormat
Fetching https://github.com/apple/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.34s)
[1/45778] Fetching swiftformat
Fetched https://github.com/nicklockwood/SwiftFormat from cache (23.50s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.51.7 (1.93s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.47s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3187] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.32s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.51s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.51.7
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin SwiftFormatPlugin
Building for debugging...
[3/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/27] Emitting module Athena
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:41:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// The default options
41 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
42 |
43 | // MARK: - OptionSet
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:35:27: warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
33 |
34 | /// Allow fragments
35 | public static let fragmentsAllowed = Options(rawValue: 1 << 0)
| |- warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fragmentsAllowed' 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
36 |
37 | /// Remove keys from objects with null values
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:38:27: warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
36 |
37 | /// Remove keys from objects with null values
38 | public static let nullSkipsKey = Options(rawValue: 1 << 1)
| |- warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullSkipsKey' 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 | /// The default options
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:51:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
49 |
50 | /// The default options
51 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
52 |
53 | // MARK: - OptionSet
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:35:27: warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
33 |
34 | /// Remove keys from objects with null values
35 | public static let nullSkipsKey = Options(rawValue: 1 << 0)
| |- warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullSkipsKey' 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
36 |
37 | /// Add pretty printing format to the string
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:38:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
36 |
37 | /// Add pretty printing format to the string
38 | public static let prettyPrinted = Options(rawValue: 1 << 1)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 | /// Sort the keys in an object
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:41:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// Sort the keys in an object
41 | public static let sortedKeys = Options(rawValue: 1 << 2)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
42 |
43 | /// Allow fragments
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:44:27: warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
42 |
43 | /// Allow fragments
44 | public static let fragmentsAllowed = Options(rawValue: 1 << 4)
| |- warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fragmentsAllowed' 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
45 |
46 | /// Remove escaping slashes
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:48:27: warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
46 | /// Remove escaping slashes
47 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
48 | public static let withoutEscapingSlashes = Options(rawValue: 1 << 5)
| |- warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'withoutEscapingSlashes' 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
49 |
50 | /// The default options
[7/29] Compiling Athena StringInterpolationExtensions.swift
[8/29] Compiling Athena Subscript.swift
[9/29] Compiling Athena IntExtensions.swift
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:38:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
36 |
37 | /// Add pretty printing format to the string
38 | public static let prettyPrinted = Options(rawValue: 1 << 1)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 | /// Sort the keys in an object
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:41:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// Sort the keys in an object
41 | public static let sortedKeys = Options(rawValue: 1 << 2)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
42 |
43 | /// Allow fragments
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:44:27: warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
42 |
43 | /// Allow fragments
44 | public static let fragmentsAllowed = Options(rawValue: 1 << 4)
| |- warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fragmentsAllowed' 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
45 |
46 | /// Remove escaping slashes
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:48:27: warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
46 | /// Remove escaping slashes
47 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
48 | public static let withoutEscapingSlashes = Options(rawValue: 1 << 5)
| |- warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'withoutEscapingSlashes' 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
49 |
50 | /// The default options
[10/29] Compiling Athena NumberParser.swift
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:38:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
36 |
37 | /// Add pretty printing format to the string
38 | public static let prettyPrinted = Options(rawValue: 1 << 1)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 | /// Sort the keys in an object
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:41:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// Sort the keys in an object
41 | public static let sortedKeys = Options(rawValue: 1 << 2)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
42 |
43 | /// Allow fragments
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:44:27: warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
42 |
43 | /// Allow fragments
44 | public static let fragmentsAllowed = Options(rawValue: 1 << 4)
| |- warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fragmentsAllowed' 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
45 |
46 | /// Remove escaping slashes
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:48:27: warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
46 | /// Remove escaping slashes
47 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
48 | public static let withoutEscapingSlashes = Options(rawValue: 1 << 5)
| |- warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'withoutEscapingSlashes' 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
49 |
50 | /// The default options
[11/29] Compiling Athena SerializationOptionsExtensions.swift
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:38:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
36 |
37 | /// Add pretty printing format to the string
38 | public static let prettyPrinted = Options(rawValue: 1 << 1)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 | /// Sort the keys in an object
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:41:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// Sort the keys in an object
41 | public static let sortedKeys = Options(rawValue: 1 << 2)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
42 |
43 | /// Allow fragments
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:44:27: warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
42 |
43 | /// Allow fragments
44 | public static let fragmentsAllowed = Options(rawValue: 1 << 4)
| |- warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fragmentsAllowed' 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
45 |
46 | /// Remove escaping slashes
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:48:27: warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
46 | /// Remove escaping slashes
47 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
48 | public static let withoutEscapingSlashes = Options(rawValue: 1 << 5)
| |- warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'withoutEscapingSlashes' 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
49 |
50 | /// The default options
[12/29] Compiling Athena NumberDecodable.swift
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:51:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
49 |
50 | /// The default options
51 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
52 |
53 | // MARK: - OptionSet
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:113:50: warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | DispatchQueue.global().async {
112 | let result = Result<Data, any Swift.Error> {
113 | try serialize(json, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | }
115 | completionHandler(json, result)
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:115:17: warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<Data, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
113 | try serialize(json, options: options)
114 | }
115 | completionHandler(json, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<Data, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
116 | }
117 | }
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:113:50: warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
111 | DispatchQueue.global().async {
112 | let result = Result<Data, any Swift.Error> {
113 | try serialize(json, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
114 | }
115 | completionHandler(json, result)
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:147:50: warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | DispatchQueue.global().async {
146 | let result = Result {
147 | try stringify(json, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | }
149 | completionHandler(json, result)
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:149:17: warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<String, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | try stringify(json, options: options)
148 | }
149 | completionHandler(json, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<String, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
150 | }
151 | }
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:147:50: warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
145 | DispatchQueue.global().async {
146 | let result = Result {
147 | try stringify(json, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
148 | }
149 | completionHandler(json, result)
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:35:27: warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
33 |
34 | /// Remove keys from objects with null values
35 | public static let nullSkipsKey = Options(rawValue: 1 << 0)
| |- warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullSkipsKey' 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
36 |
37 | /// Add pretty printing format to the string
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:38:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
36 |
37 | /// Add pretty printing format to the string
38 | public static let prettyPrinted = Options(rawValue: 1 << 1)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 | /// Sort the keys in an object
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:41:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// Sort the keys in an object
41 | public static let sortedKeys = Options(rawValue: 1 << 2)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
42 |
43 | /// Allow fragments
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:44:27: warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
42 |
43 | /// Allow fragments
44 | public static let fragmentsAllowed = Options(rawValue: 1 << 4)
| |- warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fragmentsAllowed' 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
45 |
46 | /// Remove escaping slashes
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:48:27: warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
46 | /// Remove escaping slashes
47 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
48 | public static let withoutEscapingSlashes = Options(rawValue: 1 << 5)
| |- warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'withoutEscapingSlashes' 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
49 |
50 | /// The default options
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:78:28: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
76 | options: Options = .default
77 | ) async throws -> Data {
78 | try await Task { try serialize(json, options: options) }.value
| | `- note: closure captures 'options' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
79 | }
80 |
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:133:28: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
131 | options: Options = .default
132 | ) async throws -> String {
133 | try await Task { try stringify(json, options: options) }.value
| | `- note: closure captures 'options' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
134 | }
135 |
[13/29] Compiling Athena Serializer.swift
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:51:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
49 |
50 | /// The default options
51 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
52 |
53 | // MARK: - OptionSet
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:113:50: warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | DispatchQueue.global().async {
112 | let result = Result<Data, any Swift.Error> {
113 | try serialize(json, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | }
115 | completionHandler(json, result)
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:115:17: warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<Data, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
113 | try serialize(json, options: options)
114 | }
115 | completionHandler(json, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<Data, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
116 | }
117 | }
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:113:50: warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
111 | DispatchQueue.global().async {
112 | let result = Result<Data, any Swift.Error> {
113 | try serialize(json, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
114 | }
115 | completionHandler(json, result)
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:147:50: warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | DispatchQueue.global().async {
146 | let result = Result {
147 | try stringify(json, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | }
149 | completionHandler(json, result)
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:149:17: warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<String, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | try stringify(json, options: options)
148 | }
149 | completionHandler(json, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<String, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
150 | }
151 | }
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:147:50: warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
145 | DispatchQueue.global().async {
146 | let result = Result {
147 | try stringify(json, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
148 | }
149 | completionHandler(json, result)
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:35:27: warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
33 |
34 | /// Remove keys from objects with null values
35 | public static let nullSkipsKey = Options(rawValue: 1 << 0)
| |- warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullSkipsKey' 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
36 |
37 | /// Add pretty printing format to the string
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:38:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
36 |
37 | /// Add pretty printing format to the string
38 | public static let prettyPrinted = Options(rawValue: 1 << 1)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 | /// Sort the keys in an object
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:41:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// Sort the keys in an object
41 | public static let sortedKeys = Options(rawValue: 1 << 2)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
42 |
43 | /// Allow fragments
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:44:27: warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
42 |
43 | /// Allow fragments
44 | public static let fragmentsAllowed = Options(rawValue: 1 << 4)
| |- warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fragmentsAllowed' 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
45 |
46 | /// Remove escaping slashes
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:48:27: warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
46 | /// Remove escaping slashes
47 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
48 | public static let withoutEscapingSlashes = Options(rawValue: 1 << 5)
| |- warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'withoutEscapingSlashes' 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
49 |
50 | /// The default options
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:78:28: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
76 | options: Options = .default
77 | ) async throws -> Data {
78 | try await Task { try serialize(json, options: options) }.value
| | `- note: closure captures 'options' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
79 | }
80 |
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:133:28: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
131 | options: Options = .default
132 | ) async throws -> String {
133 | try await Task { try stringify(json, options: options) }.value
| | `- note: closure captures 'options' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
134 | }
135 |
[14/29] Compiling Athena SerializerOptions.swift
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:51:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
49 |
50 | /// The default options
51 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
52 |
53 | // MARK: - OptionSet
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:113:50: warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | DispatchQueue.global().async {
112 | let result = Result<Data, any Swift.Error> {
113 | try serialize(json, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | }
115 | completionHandler(json, result)
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:115:17: warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<Data, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
113 | try serialize(json, options: options)
114 | }
115 | completionHandler(json, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<Data, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
116 | }
117 | }
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:113:50: warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
111 | DispatchQueue.global().async {
112 | let result = Result<Data, any Swift.Error> {
113 | try serialize(json, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
114 | }
115 | completionHandler(json, result)
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:147:50: warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | DispatchQueue.global().async {
146 | let result = Result {
147 | try stringify(json, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | }
149 | completionHandler(json, result)
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:149:17: warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<String, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | try stringify(json, options: options)
148 | }
149 | completionHandler(json, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<String, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
150 | }
151 | }
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:147:50: warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
145 | DispatchQueue.global().async {
146 | let result = Result {
147 | try stringify(json, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Serializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
148 | }
149 | completionHandler(json, result)
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:35:27: warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
33 |
34 | /// Remove keys from objects with null values
35 | public static let nullSkipsKey = Options(rawValue: 1 << 0)
| |- warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullSkipsKey' 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
36 |
37 | /// Add pretty printing format to the string
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:38:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
36 |
37 | /// Add pretty printing format to the string
38 | public static let prettyPrinted = Options(rawValue: 1 << 1)
| |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prettyPrinted' 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 | /// Sort the keys in an object
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:41:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// Sort the keys in an object
41 | public static let sortedKeys = Options(rawValue: 1 << 2)
| |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sortedKeys' 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
42 |
43 | /// Allow fragments
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:44:27: warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
42 |
43 | /// Allow fragments
44 | public static let fragmentsAllowed = Options(rawValue: 1 << 4)
| |- warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fragmentsAllowed' 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
45 |
46 | /// Remove escaping slashes
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:48:27: warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
46 | /// Remove escaping slashes
47 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
48 | public static let withoutEscapingSlashes = Options(rawValue: 1 << 5)
| |- warning: static property 'withoutEscapingSlashes' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'withoutEscapingSlashes' 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
49 |
50 | /// The default options
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:78:28: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
76 | options: Options = .default
77 | ) async throws -> Data {
78 | try await Task { try serialize(json, options: options) }.value
| | `- note: closure captures 'options' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
79 | }
80 |
/host/spi-builder-workspace/Sources/Athena/Serializer.swift:133:28: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
131 | options: Options = .default
132 | ) async throws -> String {
133 | try await Task { try stringify(json, options: options) }.value
| | `- note: closure captures 'options' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
134 | }
135 |
[15/29] Compiling Athena Literal.swift
[16/29] Compiling Athena LiteralDecodable.swift
[17/29] Compiling Athena Number.swift
[18/29] Compiling Athena Encoder.swift
/host/spi-builder-workspace/Sources/Athena/Encoder.swift:99:35: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | @available(watchOS, deprecated: 8.0, message: "Use the Swift Concurrency based APIs instead.")
93 | @available(tvOS, deprecated: 15.0, message: "Use the Swift Concurrency based APIs instead.")
94 | public static func encode<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
95 | _ value: T,
96 | completionHandler: @escaping (T, JSON) -> Void
97 | ) where T: JSONEncodable {
98 | DispatchQueue.global().async {
99 | let json = encode(value)
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | completionHandler(value, json)
101 | }
/host/spi-builder-workspace/Sources/Athena/Encoder.swift:100:17: warning: capture of 'completionHandler' with non-sendable type '(T, JSON) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | DispatchQueue.global().async {
99 | let json = encode(value)
100 | completionHandler(value, json)
| |- warning: capture of 'completionHandler' with non-sendable type '(T, JSON) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
101 | }
102 | }
/host/spi-builder-workspace/Sources/Athena/Encoder.swift:69:24: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
67 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
68 | public static func encode<T>(_ value: T) async -> JSON where T: JSONEncodable {
69 | await Task { encode(value) }.value
| | `- note: closure captures 'value' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
70 | }
71 |
[19/29] Compiling Athena EncodingDetector.swift
/host/spi-builder-workspace/Sources/Athena/Encoder.swift:99:35: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | @available(watchOS, deprecated: 8.0, message: "Use the Swift Concurrency based APIs instead.")
93 | @available(tvOS, deprecated: 15.0, message: "Use the Swift Concurrency based APIs instead.")
94 | public static func encode<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
95 | _ value: T,
96 | completionHandler: @escaping (T, JSON) -> Void
97 | ) where T: JSONEncodable {
98 | DispatchQueue.global().async {
99 | let json = encode(value)
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | completionHandler(value, json)
101 | }
/host/spi-builder-workspace/Sources/Athena/Encoder.swift:100:17: warning: capture of 'completionHandler' with non-sendable type '(T, JSON) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | DispatchQueue.global().async {
99 | let json = encode(value)
100 | completionHandler(value, json)
| |- warning: capture of 'completionHandler' with non-sendable type '(T, JSON) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
101 | }
102 | }
/host/spi-builder-workspace/Sources/Athena/Encoder.swift:69:24: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
67 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
68 | public static func encode<T>(_ value: T) async -> JSON where T: JSONEncodable {
69 | await Task { encode(value) }.value
| | `- note: closure captures 'value' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
70 | }
71 |
[20/29] Compiling Athena Error.swift
/host/spi-builder-workspace/Sources/Athena/Encoder.swift:99:35: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | @available(watchOS, deprecated: 8.0, message: "Use the Swift Concurrency based APIs instead.")
93 | @available(tvOS, deprecated: 15.0, message: "Use the Swift Concurrency based APIs instead.")
94 | public static func encode<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
95 | _ value: T,
96 | completionHandler: @escaping (T, JSON) -> Void
97 | ) where T: JSONEncodable {
98 | DispatchQueue.global().async {
99 | let json = encode(value)
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | completionHandler(value, json)
101 | }
/host/spi-builder-workspace/Sources/Athena/Encoder.swift:100:17: warning: capture of 'completionHandler' with non-sendable type '(T, JSON) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | DispatchQueue.global().async {
99 | let json = encode(value)
100 | completionHandler(value, json)
| |- warning: capture of 'completionHandler' with non-sendable type '(T, JSON) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
101 | }
102 | }
/host/spi-builder-workspace/Sources/Athena/Encoder.swift:69:24: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
67 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
68 | public static func encode<T>(_ value: T) async -> JSON where T: JSONEncodable {
69 | await Task { encode(value) }.value
| | `- note: closure captures 'value' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
70 | }
71 |
[21/29] Compiling Athena StringExtensions.swift
[22/29] Compiling Athena UInt8Extensions.swift
[23/29] Compiling Athena UnicodeEscapeParser.swift
[24/29] Compiling Athena Decoder.swift
/host/spi-builder-workspace/Sources/Athena/Decoder.swift:82:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | /// - Throws: A ``JSON/Error`` if the value could not be decoded successfully
77 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
78 | public static func decode<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
79 | _ type: T.Type = T.self,
80 | from json: JSON
81 | ) async throws -> T where T: JSONDecodable {
82 | try await Task { try decode(type, from: json) }.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | }
84 |
/host/spi-builder-workspace/Sources/Athena/Decoder.swift:82:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | /// - Throws: A ``JSON/Error`` if the value could not be decoded successfully
77 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
78 | public static func decode<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
79 | _ type: T.Type = T.self,
80 | from json: JSON
81 | ) async throws -> T where T: JSONDecodable {
82 | try await Task { try decode(type, from: json) }.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | }
84 |
/host/spi-builder-workspace/Sources/Athena/Decoder.swift:82:61: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | /// - Throws: A ``JSON/Error`` if the value could not be decoded successfully
77 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
78 | public static func decode<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
79 | _ type: T.Type = T.self,
80 | from json: JSON
81 | ) async throws -> T where T: JSONDecodable {
82 | try await Task { try decode(type, from: json) }.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | }
84 |
/host/spi-builder-workspace/Sources/Athena/Decoder.swift:122:17: warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | try decode(type, from: json)
121 | }
122 | completionHandler(json, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
123 | }
124 | }
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:41:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// The default options
41 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
42 |
43 | // MARK: - OptionSet
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:116:66: warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | DispatchQueue.global().async {
115 | let result: Result<JSON, any Swift.Error> = .init {
116 | try parse(data, maximumDepth: .max, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | completionHandler(data, result)
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:118:17: warning: capture of 'completionHandler' with non-sendable type '(Data, Result<JSON, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 | try parse(data, maximumDepth: .max, options: options)
117 | }
118 | completionHandler(data, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(Data, Result<JSON, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
119 | }
120 | }
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:116:66: warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
114 | DispatchQueue.global().async {
115 | let result: Result<JSON, any Swift.Error> = .init {
116 | try parse(data, maximumDepth: .max, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
117 | }
118 | completionHandler(data, result)
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:202:72: warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | DispatchQueue.global().async {
201 | let result: Result<JSON, any Swift.Error> = .init {
202 | try parse(jsonString, maximumDepth: .max, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 | }
204 | completionHandler(jsonString, result)
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:204:17: warning: capture of 'completionHandler' with non-sendable type '(String, Result<JSON, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
202 | try parse(jsonString, maximumDepth: .max, options: options)
203 | }
204 | completionHandler(jsonString, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(String, Result<JSON, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
205 | }
206 | }
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:202:72: warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
200 | DispatchQueue.global().async {
201 | let result: Result<JSON, any Swift.Error> = .init {
202 | try parse(jsonString, maximumDepth: .max, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
203 | }
204 | completionHandler(jsonString, result)
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:35:27: warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
33 |
34 | /// Allow fragments
35 | public static let fragmentsAllowed = Options(rawValue: 1 << 0)
| |- warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fragmentsAllowed' 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
36 |
37 | /// Remove keys from objects with null values
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:38:27: warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
36 |
37 | /// Remove keys from objects with null values
38 | public static let nullSkipsKey = Options(rawValue: 1 << 1)
| |- warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullSkipsKey' 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 | /// The default options
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:80:28: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
78 | options: Options = .default
79 | ) async throws -> JSON {
80 | try await Task { try parse(data, maximumDepth: .max, options: options) }.value
| | `- note: closure captures 'options' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
81 | }
82 |
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:166:28: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
164 | options: Options = .default
165 | ) async throws -> JSON {
166 | try await Task { try parse(jsonString, maximumDepth: .max, options: options) }.value
| | `- note: closure captures 'options' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
167 | }
168 |
[25/29] Compiling Athena Deserializer.swift
/host/spi-builder-workspace/Sources/Athena/Decoder.swift:82:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | /// - Throws: A ``JSON/Error`` if the value could not be decoded successfully
77 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
78 | public static func decode<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
79 | _ type: T.Type = T.self,
80 | from json: JSON
81 | ) async throws -> T where T: JSONDecodable {
82 | try await Task { try decode(type, from: json) }.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | }
84 |
/host/spi-builder-workspace/Sources/Athena/Decoder.swift:82:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | /// - Throws: A ``JSON/Error`` if the value could not be decoded successfully
77 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
78 | public static func decode<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
79 | _ type: T.Type = T.self,
80 | from json: JSON
81 | ) async throws -> T where T: JSONDecodable {
82 | try await Task { try decode(type, from: json) }.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | }
84 |
/host/spi-builder-workspace/Sources/Athena/Decoder.swift:82:61: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | /// - Throws: A ``JSON/Error`` if the value could not be decoded successfully
77 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
78 | public static func decode<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
79 | _ type: T.Type = T.self,
80 | from json: JSON
81 | ) async throws -> T where T: JSONDecodable {
82 | try await Task { try decode(type, from: json) }.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | }
84 |
/host/spi-builder-workspace/Sources/Athena/Decoder.swift:122:17: warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | try decode(type, from: json)
121 | }
122 | completionHandler(json, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
123 | }
124 | }
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:41:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// The default options
41 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
42 |
43 | // MARK: - OptionSet
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:116:66: warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | DispatchQueue.global().async {
115 | let result: Result<JSON, any Swift.Error> = .init {
116 | try parse(data, maximumDepth: .max, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | completionHandler(data, result)
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:118:17: warning: capture of 'completionHandler' with non-sendable type '(Data, Result<JSON, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 | try parse(data, maximumDepth: .max, options: options)
117 | }
118 | completionHandler(data, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(Data, Result<JSON, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
119 | }
120 | }
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:116:66: warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
114 | DispatchQueue.global().async {
115 | let result: Result<JSON, any Swift.Error> = .init {
116 | try parse(data, maximumDepth: .max, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
117 | }
118 | completionHandler(data, result)
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:202:72: warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | DispatchQueue.global().async {
201 | let result: Result<JSON, any Swift.Error> = .init {
202 | try parse(jsonString, maximumDepth: .max, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 | }
204 | completionHandler(jsonString, result)
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:204:17: warning: capture of 'completionHandler' with non-sendable type '(String, Result<JSON, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
202 | try parse(jsonString, maximumDepth: .max, options: options)
203 | }
204 | completionHandler(jsonString, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(String, Result<JSON, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
205 | }
206 | }
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:202:72: warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
200 | DispatchQueue.global().async {
201 | let result: Result<JSON, any Swift.Error> = .init {
202 | try parse(jsonString, maximumDepth: .max, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
203 | }
204 | completionHandler(jsonString, result)
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:35:27: warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
33 |
34 | /// Allow fragments
35 | public static let fragmentsAllowed = Options(rawValue: 1 << 0)
| |- warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fragmentsAllowed' 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
36 |
37 | /// Remove keys from objects with null values
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:38:27: warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
36 |
37 | /// Remove keys from objects with null values
38 | public static let nullSkipsKey = Options(rawValue: 1 << 1)
| |- warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullSkipsKey' 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 | /// The default options
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:80:28: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
78 | options: Options = .default
79 | ) async throws -> JSON {
80 | try await Task { try parse(data, maximumDepth: .max, options: options) }.value
| | `- note: closure captures 'options' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
81 | }
82 |
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:166:28: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
164 | options: Options = .default
165 | ) async throws -> JSON {
166 | try await Task { try parse(jsonString, maximumDepth: .max, options: options) }.value
| | `- note: closure captures 'options' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
167 | }
168 |
[26/29] Compiling Athena DeserializerOptions.swift
/host/spi-builder-workspace/Sources/Athena/Decoder.swift:82:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | /// - Throws: A ``JSON/Error`` if the value could not be decoded successfully
77 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
78 | public static func decode<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
79 | _ type: T.Type = T.self,
80 | from json: JSON
81 | ) async throws -> T where T: JSONDecodable {
82 | try await Task { try decode(type, from: json) }.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | }
84 |
/host/spi-builder-workspace/Sources/Athena/Decoder.swift:82:23: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | /// - Throws: A ``JSON/Error`` if the value could not be decoded successfully
77 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
78 | public static func decode<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
79 | _ type: T.Type = T.self,
80 | from json: JSON
81 | ) async throws -> T where T: JSONDecodable {
82 | try await Task { try decode(type, from: json) }.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | }
84 |
/host/spi-builder-workspace/Sources/Athena/Decoder.swift:82:61: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | /// - Throws: A ``JSON/Error`` if the value could not be decoded successfully
77 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
78 | public static func decode<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
79 | _ type: T.Type = T.self,
80 | from json: JSON
81 | ) async throws -> T where T: JSONDecodable {
82 | try await Task { try decode(type, from: json) }.value
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | }
84 |
/host/spi-builder-workspace/Sources/Athena/Decoder.swift:122:17: warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | try decode(type, from: json)
121 | }
122 | completionHandler(json, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(JSON, Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
123 | }
124 | }
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:41:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// The default options
41 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
42 |
43 | // MARK: - OptionSet
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:116:66: warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | DispatchQueue.global().async {
115 | let result: Result<JSON, any Swift.Error> = .init {
116 | try parse(data, maximumDepth: .max, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | completionHandler(data, result)
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:118:17: warning: capture of 'completionHandler' with non-sendable type '(Data, Result<JSON, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 | try parse(data, maximumDepth: .max, options: options)
117 | }
118 | completionHandler(data, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(Data, Result<JSON, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
119 | }
120 | }
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:116:66: warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
114 | DispatchQueue.global().async {
115 | let result: Result<JSON, any Swift.Error> = .init {
116 | try parse(data, maximumDepth: .max, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
117 | }
118 | completionHandler(data, result)
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:202:72: warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | DispatchQueue.global().async {
201 | let result: Result<JSON, any Swift.Error> = .init {
202 | try parse(jsonString, maximumDepth: .max, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 | }
204 | completionHandler(jsonString, result)
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:204:17: warning: capture of 'completionHandler' with non-sendable type '(String, Result<JSON, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
202 | try parse(jsonString, maximumDepth: .max, options: options)
203 | }
204 | completionHandler(jsonString, result)
| |- warning: capture of 'completionHandler' with non-sendable type '(String, Result<JSON, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
205 | }
206 | }
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:202:72: warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
200 | DispatchQueue.global().async {
201 | let result: Result<JSON, any Swift.Error> = .init {
202 | try parse(jsonString, maximumDepth: .max, options: options)
| `- warning: capture of 'options' with non-sendable type 'JSON.Deserializer.Options' in an isolated closure; this is an error in the Swift 6 language mode
203 | }
204 | completionHandler(jsonString, result)
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:30:12: note: consider making struct 'Options' conform to the 'Sendable' protocol
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:35:27: warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
33 |
34 | /// Allow fragments
35 | public static let fragmentsAllowed = Options(rawValue: 1 << 0)
| |- warning: static property 'fragmentsAllowed' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fragmentsAllowed' 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
36 |
37 | /// Remove keys from objects with null values
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:38:27: warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
36 |
37 | /// Remove keys from objects with null values
38 | public static let nullSkipsKey = Options(rawValue: 1 << 1)
| |- warning: static property 'nullSkipsKey' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullSkipsKey' 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 | /// The default options
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:80:28: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
78 | options: Options = .default
79 | ) async throws -> JSON {
80 | try await Task { try parse(data, maximumDepth: .max, options: options) }.value
| | `- note: closure captures 'options' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
81 | }
82 |
/host/spi-builder-workspace/Sources/Athena/Deserializer.swift:166:28: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
164 | options: Options = .default
165 | ) async throws -> JSON {
166 | try await Task { try parse(jsonString, maximumDepth: .max, options: options) }.value
| | `- note: closure captures 'options' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
167 | }
168 |
[27/29] Compiling Athena JSON.swift
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:41:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// The default options
41 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
42 |
43 | // MARK: - OptionSet
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:51:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
49 |
50 | /// The default options
51 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
52 |
53 | // MARK: - OptionSet
[28/29] Compiling Athena JSONCodable.swift
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:41:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// The default options
41 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
42 |
43 | // MARK: - OptionSet
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:51:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
49 |
50 | /// The default options
51 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
52 |
53 | // MARK: - OptionSet
[29/29] Compiling Athena JSONSubscriptRepresentable.swift
/host/spi-builder-workspace/Sources/Athena/DeserializerOptions.swift:41:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Deserializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
39 |
40 | /// The default options
41 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Deserializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
42 |
43 | // MARK: - OptionSet
/host/spi-builder-workspace/Sources/Athena/SerializerOptions.swift:51:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A bitmask used to provide customization options when using the static interface of ``JSON/Serializer``
30 | struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
31 |
32 | // MARK: - API
:
49 |
50 | /// The default options
51 | public static let `default`: Options = [.fragmentsAllowed]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'JSON.Serializer.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
52 |
53 | // MARK: - OptionSet
Build complete! (51.06s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
},
{
"identity" : "swiftformat",
"requirement" : {
"exact" : [
"0.51.7"
]
},
"type" : "sourceControl",
"url" : "https://github.com/nicklockwood/SwiftFormat"
}
],
"manifest_display_name" : "Athena",
"name" : "Athena",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.14"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "5.0"
}
],
"products" : [
{
"name" : "Athena",
"targets" : [
"Athena"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AthenaTests",
"module_type" : "SwiftTarget",
"name" : "AthenaTests",
"path" : "Tests/AthenaTests",
"sources" : [
"DeserializerTests.swift",
"EncodeDecodeTests.swift",
"JSONEncodingUTFTestFixtures.swift",
"JSONTests.swift"
],
"target_dependencies" : [
"Athena"
],
"type" : "test"
},
{
"c99name" : "Athena",
"module_type" : "SwiftTarget",
"name" : "Athena",
"path" : "Sources/Athena",
"product_memberships" : [
"Athena"
],
"sources" : [
"Decoder.swift",
"Deserializer.swift",
"DeserializerOptions.swift",
"Encoder.swift",
"EncodingDetector.swift",
"Error.swift",
"Internal/IntExtensions.swift",
"Internal/NumberParser.swift",
"Internal/SerializationOptionsExtensions.swift",
"Internal/StringExtensions.swift",
"Internal/UInt8Extensions.swift",
"Internal/UnicodeEscapeParser.swift",
"JSON.swift",
"JSONCodable.swift",
"JSONSubscriptRepresentable.swift",
"Literal.swift",
"LiteralDecodable.swift",
"Number.swift",
"NumberDecodable.swift",
"Serializer.swift",
"SerializerOptions.swift",
"StringInterpolationExtensions.swift",
"Subscript.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.