Build Information
Successful build of Telegraph, reference 0.40.0 (f56b67
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 20:21:54 UTC.
Swift 6 data race errors: 127
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
| |- note: annotate 'forbidden' 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
184 |
185 | /// 404 Not Found: requested resource could not be found but may be available in the future.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:153:14: warning: static property 'notModified' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
151 | /// 304 Not Modified: the resource has not been modified since the version specified by the request
152 | /// headers If-Modified-Since or If-None-Match.
153 | static let notModified = HTTPStatus(code: 304, phrase: "Not Modified")
| |- warning: static property 'notModified' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notModified' 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
154 |
155 | /// 305 Use Proxy: resource is available only through a proxy, the address is provided in the response.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:226:14: warning: static property 'rangeNotSatisfiable' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
224 | /// 416 Range Not Satisfiable: client has asked for a portion of the file, but the server cannot
225 | /// supply that portion.
226 | static let rangeNotSatisfiable = HTTPStatus(code: 416, phrase: "Range Not Satisfiable")
| |- warning: static property 'rangeNotSatisfiable' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rangeNotSatisfiable' 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
227 |
228 | /// 417 Expectation Failed: server cannot meet the requirements of the Expect request-header field.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader+Common.swift:31:14: warning: static property 'contentRange' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
29 | static let contentLanguage = HTTPHeaderName("Content-Language")
30 | static let contentLength = HTTPHeaderName("Content-Length")
31 | static let contentRange = HTTPHeaderName("Content-Range")
| |- warning: static property 'contentRange' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentRange' 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
32 | static let contentType = HTTPHeaderName("Content-Type")
33 | static let date = HTTPHeaderName("Date")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:120:14: warning: static property 'partialContent' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
118 |
119 | /// 206 Partial Content: server is delivering only part of the resource due to a range header sent by the client.
120 | static let partialContent = HTTPStatus(code: 206, phrase: "Partial Content")
| |- warning: static property 'partialContent' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'partialContent' 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
121 |
122 | /// 207 Multi-Status: message body that follows is by default an XML message and can contain a number of separate
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:15:14: warning: static property 'HEAD' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
:
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
15 | static let HEAD = HTTPMethod(name: "HEAD")
| |- warning: static property 'HEAD' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'HEAD' 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
16 | static let DELETE = HTTPMethod(name: "DELETE")
17 | static let POST = HTTPMethod(name: "POST")
[47/74] Compiling Telegraph HTTPConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:274:14: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
273 | /// to fulfil the request.
274 | static let notImplemented = HTTPStatus(code: 501, phrase: "Not Implemented")
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notImplemented' 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
275 |
276 | /// 502 Bad Gateway: server was acting as a gateway or proxy and received an invalid response
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:189:14: warning: static property 'methodNotAllowed' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
187 |
188 | /// 405 Method Not Allowed: request method is not supported for the requested resource.
189 | static let methodNotAllowed = HTTPStatus(code: 405, phrase: "Method Not Allowed")
| |- warning: static property 'methodNotAllowed' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'methodNotAllowed' 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
190 |
191 | /// 406 Not Acceptable: equested resource is capable of generating only content not acceptable
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:288:14: warning: static property 'httpVersionNotSupported' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
286 |
287 | /// 505 HTTP Version Not Supported: server does not support the HTTP protocol version used in the request.
288 | static let httpVersionNotSupported = HTTPStatus(code: 505, phrase: "HTTP Version Not Supported")
| |- warning: static property 'httpVersionNotSupported' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'httpVersionNotSupported' 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
289 |
290 | /// 506 Vairant Also Negotiates: transparent content negotiation for the request results in a circular reference.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:258:14: warning: static property 'requestHeaderFieldsTooLarge' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
256 | /// 431 Request Header Fields Too Large: server is unwilling to process the request because either an
257 | /// individual header field, or all the header fields collectively, are too large.
258 | static let requestHeaderFieldsTooLarge = HTTPStatus(code: 431, phrase: "Request Header Fields Too Large")
| |- warning: static property 'requestHeaderFieldsTooLarge' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'requestHeaderFieldsTooLarge' 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
259 |
260 | /// 451 Unavailable For Legal Reasons: server operator has received a legal demand to deny access to
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:171:14: warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
169 | public extension HTTPStatus {
170 | /// 400 Bad Request: server cannot or will not process the request due to an apparent client error.
171 | static let badRequest = HTTPStatus(code: 400, phrase: "Bad Request")
| |- warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'badRequest' 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
172 |
173 | /// 401 Unauthorized: similar to 403 Forbidden, but specifically for use when authentication is
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:270:14: warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
268 | /// 500 Internal Server Error: generic error message, given when an unexpected condition was encountered
269 | /// and no more specific message is suitable
270 | static let internalServerError = HTTPStatus(code: 500, phrase: "Internal Server Error")
| |- warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'internalServerError' 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
271 |
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:14:14: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
12 |
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
| |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'GET' 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
15 | static let HEAD = HTTPMethod(name: "HEAD")
16 | static let DELETE = HTTPMethod(name: "DELETE")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:186:14: warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
184 |
185 | /// 404 Not Found: requested resource could not be found but may be available in the future.
186 | static let notFound = HTTPStatus(code: 404, phrase: "Not Found")
| |- warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notFound' 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
187 |
188 | /// 405 Method Not Allowed: request method is not supported for the requested resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPVersion.swift:22:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct HTTPVersion {
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
12 | public let major: UInt
13 | public let minor: UInt
:
20 |
21 | public extension HTTPVersion {
22 | static let `default` = HTTPVersion(major: 1, minor: 1)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:183:14: warning: static property 'forbidden' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
181 | /// 403 Forbidden: request was valid, but the server is refusing action. The user might not
182 | /// have the necessary permissions for a resource, or may need an account of some sort.
183 | static let forbidden = HTTPStatus(code: 403, phrase: "Forbidden")
| |- warning: static property 'forbidden' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'forbidden' 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
184 |
185 | /// 404 Not Found: requested resource could not be found but may be available in the future.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:153:14: warning: static property 'notModified' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
151 | /// 304 Not Modified: the resource has not been modified since the version specified by the request
152 | /// headers If-Modified-Since or If-None-Match.
153 | static let notModified = HTTPStatus(code: 304, phrase: "Not Modified")
| |- warning: static property 'notModified' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notModified' 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
154 |
155 | /// 305 Use Proxy: resource is available only through a proxy, the address is provided in the response.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:226:14: warning: static property 'rangeNotSatisfiable' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
224 | /// 416 Range Not Satisfiable: client has asked for a portion of the file, but the server cannot
225 | /// supply that portion.
226 | static let rangeNotSatisfiable = HTTPStatus(code: 416, phrase: "Range Not Satisfiable")
| |- warning: static property 'rangeNotSatisfiable' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rangeNotSatisfiable' 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
227 |
228 | /// 417 Expectation Failed: server cannot meet the requirements of the Expect request-header field.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader+Common.swift:31:14: warning: static property 'contentRange' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
29 | static let contentLanguage = HTTPHeaderName("Content-Language")
30 | static let contentLength = HTTPHeaderName("Content-Length")
31 | static let contentRange = HTTPHeaderName("Content-Range")
| |- warning: static property 'contentRange' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentRange' 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
32 | static let contentType = HTTPHeaderName("Content-Type")
33 | static let date = HTTPHeaderName("Date")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:120:14: warning: static property 'partialContent' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
118 |
119 | /// 206 Partial Content: server is delivering only part of the resource due to a range header sent by the client.
120 | static let partialContent = HTTPStatus(code: 206, phrase: "Partial Content")
| |- warning: static property 'partialContent' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'partialContent' 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
121 |
122 | /// 207 Multi-Status: message body that follows is by default an XML message and can contain a number of separate
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:15:14: warning: static property 'HEAD' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
:
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
15 | static let HEAD = HTTPMethod(name: "HEAD")
| |- warning: static property 'HEAD' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'HEAD' 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
16 | static let DELETE = HTTPMethod(name: "DELETE")
17 | static let POST = HTTPMethod(name: "POST")
[48/74] Compiling Telegraph HTTPError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:274:14: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
273 | /// to fulfil the request.
274 | static let notImplemented = HTTPStatus(code: 501, phrase: "Not Implemented")
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notImplemented' 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
275 |
276 | /// 502 Bad Gateway: server was acting as a gateway or proxy and received an invalid response
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:189:14: warning: static property 'methodNotAllowed' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
187 |
188 | /// 405 Method Not Allowed: request method is not supported for the requested resource.
189 | static let methodNotAllowed = HTTPStatus(code: 405, phrase: "Method Not Allowed")
| |- warning: static property 'methodNotAllowed' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'methodNotAllowed' 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
190 |
191 | /// 406 Not Acceptable: equested resource is capable of generating only content not acceptable
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:288:14: warning: static property 'httpVersionNotSupported' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
286 |
287 | /// 505 HTTP Version Not Supported: server does not support the HTTP protocol version used in the request.
288 | static let httpVersionNotSupported = HTTPStatus(code: 505, phrase: "HTTP Version Not Supported")
| |- warning: static property 'httpVersionNotSupported' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'httpVersionNotSupported' 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
289 |
290 | /// 506 Vairant Also Negotiates: transparent content negotiation for the request results in a circular reference.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:258:14: warning: static property 'requestHeaderFieldsTooLarge' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
256 | /// 431 Request Header Fields Too Large: server is unwilling to process the request because either an
257 | /// individual header field, or all the header fields collectively, are too large.
258 | static let requestHeaderFieldsTooLarge = HTTPStatus(code: 431, phrase: "Request Header Fields Too Large")
| |- warning: static property 'requestHeaderFieldsTooLarge' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'requestHeaderFieldsTooLarge' 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
259 |
260 | /// 451 Unavailable For Legal Reasons: server operator has received a legal demand to deny access to
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:171:14: warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
169 | public extension HTTPStatus {
170 | /// 400 Bad Request: server cannot or will not process the request due to an apparent client error.
171 | static let badRequest = HTTPStatus(code: 400, phrase: "Bad Request")
| |- warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'badRequest' 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
172 |
173 | /// 401 Unauthorized: similar to 403 Forbidden, but specifically for use when authentication is
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:270:14: warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
268 | /// 500 Internal Server Error: generic error message, given when an unexpected condition was encountered
269 | /// and no more specific message is suitable
270 | static let internalServerError = HTTPStatus(code: 500, phrase: "Internal Server Error")
| |- warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'internalServerError' 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
271 |
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:14:14: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
12 |
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
| |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'GET' 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
15 | static let HEAD = HTTPMethod(name: "HEAD")
16 | static let DELETE = HTTPMethod(name: "DELETE")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:186:14: warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
184 |
185 | /// 404 Not Found: requested resource could not be found but may be available in the future.
186 | static let notFound = HTTPStatus(code: 404, phrase: "Not Found")
| |- warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notFound' 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
187 |
188 | /// 405 Method Not Allowed: request method is not supported for the requested resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPVersion.swift:22:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct HTTPVersion {
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
12 | public let major: UInt
13 | public let minor: UInt
:
20 |
21 | public extension HTTPVersion {
22 | static let `default` = HTTPVersion(major: 1, minor: 1)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:183:14: warning: static property 'forbidden' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
181 | /// 403 Forbidden: request was valid, but the server is refusing action. The user might not
182 | /// have the necessary permissions for a resource, or may need an account of some sort.
183 | static let forbidden = HTTPStatus(code: 403, phrase: "Forbidden")
| |- warning: static property 'forbidden' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'forbidden' 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
184 |
185 | /// 404 Not Found: requested resource could not be found but may be available in the future.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:153:14: warning: static property 'notModified' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
151 | /// 304 Not Modified: the resource has not been modified since the version specified by the request
152 | /// headers If-Modified-Since or If-None-Match.
153 | static let notModified = HTTPStatus(code: 304, phrase: "Not Modified")
| |- warning: static property 'notModified' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notModified' 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
154 |
155 | /// 305 Use Proxy: resource is available only through a proxy, the address is provided in the response.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:226:14: warning: static property 'rangeNotSatisfiable' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
224 | /// 416 Range Not Satisfiable: client has asked for a portion of the file, but the server cannot
225 | /// supply that portion.
226 | static let rangeNotSatisfiable = HTTPStatus(code: 416, phrase: "Range Not Satisfiable")
| |- warning: static property 'rangeNotSatisfiable' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rangeNotSatisfiable' 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
227 |
228 | /// 417 Expectation Failed: server cannot meet the requirements of the Expect request-header field.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader+Common.swift:31:14: warning: static property 'contentRange' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
29 | static let contentLanguage = HTTPHeaderName("Content-Language")
30 | static let contentLength = HTTPHeaderName("Content-Length")
31 | static let contentRange = HTTPHeaderName("Content-Range")
| |- warning: static property 'contentRange' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentRange' 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
32 | static let contentType = HTTPHeaderName("Content-Type")
33 | static let date = HTTPHeaderName("Date")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:120:14: warning: static property 'partialContent' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
118 |
119 | /// 206 Partial Content: server is delivering only part of the resource due to a range header sent by the client.
120 | static let partialContent = HTTPStatus(code: 206, phrase: "Partial Content")
| |- warning: static property 'partialContent' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'partialContent' 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
121 |
122 | /// 207 Multi-Status: message body that follows is by default an XML message and can contain a number of separate
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:15:14: warning: static property 'HEAD' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
:
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
15 | static let HEAD = HTTPMethod(name: "HEAD")
| |- warning: static property 'HEAD' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'HEAD' 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
16 | static let DELETE = HTTPMethod(name: "DELETE")
17 | static let POST = HTTPMethod(name: "POST")
[49/74] Compiling Telegraph HTTPWebSocketHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:14:14: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
12 |
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
| |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'GET' 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
15 | static let HEAD = HTTPMethod(name: "HEAD")
16 | static let DELETE = HTTPMethod(name: "DELETE")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:171:14: warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
169 | public extension HTTPStatus {
170 | /// 400 Bad Request: server cannot or will not process the request due to an apparent client error.
171 | static let badRequest = HTTPStatus(code: 400, phrase: "Bad Request")
| |- warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'badRequest' 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
172 |
173 | /// 401 Unauthorized: similar to 403 Forbidden, but specifically for use when authentication is
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:274:14: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
273 | /// to fulfil the request.
274 | static let notImplemented = HTTPStatus(code: 501, phrase: "Not Implemented")
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notImplemented' 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
275 |
276 | /// 502 Bad Gateway: server was acting as a gateway or proxy and received an invalid response
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:12:14: warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
| |- warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketAccept' 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
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:13:14: warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
| |- warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketKey' 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
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:14:14: warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
| |- warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketProtocol' 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
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:15:14: warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
| |- warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketVersion' 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
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPVersion.swift:22:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct HTTPVersion {
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
12 | public let major: UInt
13 | public let minor: UInt
:
20 |
21 | public extension HTTPVersion {
22 | static let `default` = HTTPVersion(major: 1, minor: 1)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' 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
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
[50/74] Compiling Telegraph WebSocketErrorDefaultHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:14:14: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
12 |
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
| |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'GET' 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
15 | static let HEAD = HTTPMethod(name: "HEAD")
16 | static let DELETE = HTTPMethod(name: "DELETE")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:171:14: warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
169 | public extension HTTPStatus {
170 | /// 400 Bad Request: server cannot or will not process the request due to an apparent client error.
171 | static let badRequest = HTTPStatus(code: 400, phrase: "Bad Request")
| |- warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'badRequest' 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
172 |
173 | /// 401 Unauthorized: similar to 403 Forbidden, but specifically for use when authentication is
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:274:14: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
273 | /// to fulfil the request.
274 | static let notImplemented = HTTPStatus(code: 501, phrase: "Not Implemented")
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notImplemented' 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
275 |
276 | /// 502 Bad Gateway: server was acting as a gateway or proxy and received an invalid response
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:12:14: warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
| |- warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketAccept' 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
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:13:14: warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
| |- warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketKey' 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
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:14:14: warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
| |- warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketProtocol' 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
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:15:14: warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
| |- warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketVersion' 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
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPVersion.swift:22:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct HTTPVersion {
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
12 | public let major: UInt
13 | public let minor: UInt
:
20 |
21 | public extension HTTPVersion {
22 | static let `default` = HTTPVersion(major: 1, minor: 1)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' 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
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
[51/74] Compiling Telegraph WebSocketErrorHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:14:14: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
12 |
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
| |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'GET' 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
15 | static let HEAD = HTTPMethod(name: "HEAD")
16 | static let DELETE = HTTPMethod(name: "DELETE")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:171:14: warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
169 | public extension HTTPStatus {
170 | /// 400 Bad Request: server cannot or will not process the request due to an apparent client error.
171 | static let badRequest = HTTPStatus(code: 400, phrase: "Bad Request")
| |- warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'badRequest' 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
172 |
173 | /// 401 Unauthorized: similar to 403 Forbidden, but specifically for use when authentication is
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:274:14: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
273 | /// to fulfil the request.
274 | static let notImplemented = HTTPStatus(code: 501, phrase: "Not Implemented")
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notImplemented' 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
275 |
276 | /// 502 Bad Gateway: server was acting as a gateway or proxy and received an invalid response
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:12:14: warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
| |- warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketAccept' 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
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:13:14: warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
| |- warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketKey' 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
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:14:14: warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
| |- warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketProtocol' 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
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:15:14: warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
| |- warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketVersion' 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
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPVersion.swift:22:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct HTTPVersion {
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
12 | public let major: UInt
13 | public let minor: UInt
:
20 |
21 | public extension HTTPVersion {
22 | static let `default` = HTTPVersion(major: 1, minor: 1)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' 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
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
[52/74] Compiling Telegraph WebSocketMessageDefaultHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:14:14: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
12 |
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
| |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'GET' 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
15 | static let HEAD = HTTPMethod(name: "HEAD")
16 | static let DELETE = HTTPMethod(name: "DELETE")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:171:14: warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
169 | public extension HTTPStatus {
170 | /// 400 Bad Request: server cannot or will not process the request due to an apparent client error.
171 | static let badRequest = HTTPStatus(code: 400, phrase: "Bad Request")
| |- warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'badRequest' 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
172 |
173 | /// 401 Unauthorized: similar to 403 Forbidden, but specifically for use when authentication is
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:274:14: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
273 | /// to fulfil the request.
274 | static let notImplemented = HTTPStatus(code: 501, phrase: "Not Implemented")
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notImplemented' 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
275 |
276 | /// 502 Bad Gateway: server was acting as a gateway or proxy and received an invalid response
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:12:14: warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
| |- warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketAccept' 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
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:13:14: warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
| |- warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketKey' 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
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:14:14: warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
| |- warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketProtocol' 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
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:15:14: warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
| |- warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketVersion' 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
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPVersion.swift:22:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct HTTPVersion {
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
12 | public let major: UInt
13 | public let minor: UInt
:
20 |
21 | public extension HTTPVersion {
22 | static let `default` = HTTPVersion(major: 1, minor: 1)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' 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
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
[53/74] Compiling Telegraph WebSocketMessageHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:14:14: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
12 |
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
| |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'GET' 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
15 | static let HEAD = HTTPMethod(name: "HEAD")
16 | static let DELETE = HTTPMethod(name: "DELETE")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:171:14: warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
169 | public extension HTTPStatus {
170 | /// 400 Bad Request: server cannot or will not process the request due to an apparent client error.
171 | static let badRequest = HTTPStatus(code: 400, phrase: "Bad Request")
| |- warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'badRequest' 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
172 |
173 | /// 401 Unauthorized: similar to 403 Forbidden, but specifically for use when authentication is
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:274:14: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
273 | /// to fulfil the request.
274 | static let notImplemented = HTTPStatus(code: 501, phrase: "Not Implemented")
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notImplemented' 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
275 |
276 | /// 502 Bad Gateway: server was acting as a gateway or proxy and received an invalid response
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:12:14: warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
| |- warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketAccept' 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
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:13:14: warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
| |- warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketKey' 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
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:14:14: warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
| |- warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketProtocol' 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
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:15:14: warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
| |- warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketVersion' 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
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPVersion.swift:22:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct HTTPVersion {
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
12 | public let major: UInt
13 | public let minor: UInt
:
20 |
21 | public extension HTTPVersion {
22 | static let `default` = HTTPVersion(major: 1, minor: 1)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' 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
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
[54/74] Compiling Telegraph HTTPHeader+WebSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:14:14: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
12 |
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
| |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'GET' 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
15 | static let HEAD = HTTPMethod(name: "HEAD")
16 | static let DELETE = HTTPMethod(name: "DELETE")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:171:14: warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
169 | public extension HTTPStatus {
170 | /// 400 Bad Request: server cannot or will not process the request due to an apparent client error.
171 | static let badRequest = HTTPStatus(code: 400, phrase: "Bad Request")
| |- warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'badRequest' 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
172 |
173 | /// 401 Unauthorized: similar to 403 Forbidden, but specifically for use when authentication is
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:274:14: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
273 | /// to fulfil the request.
274 | static let notImplemented = HTTPStatus(code: 501, phrase: "Not Implemented")
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notImplemented' 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
275 |
276 | /// 502 Bad Gateway: server was acting as a gateway or proxy and received an invalid response
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:12:14: warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
| |- warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketAccept' 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
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:13:14: warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
| |- warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketKey' 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
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:14:14: warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
| |- warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketProtocol' 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
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:15:14: warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
| |- warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketVersion' 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
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPVersion.swift:22:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct HTTPVersion {
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
12 | public let major: UInt
13 | public let minor: UInt
:
20 |
21 | public extension HTTPVersion {
22 | static let `default` = HTTPVersion(major: 1, minor: 1)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' 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
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
[55/74] Compiling Telegraph HTTPMessage+WebSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:14:14: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
12 |
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
| |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'GET' 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
15 | static let HEAD = HTTPMethod(name: "HEAD")
16 | static let DELETE = HTTPMethod(name: "DELETE")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:171:14: warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
169 | public extension HTTPStatus {
170 | /// 400 Bad Request: server cannot or will not process the request due to an apparent client error.
171 | static let badRequest = HTTPStatus(code: 400, phrase: "Bad Request")
| |- warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'badRequest' 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
172 |
173 | /// 401 Unauthorized: similar to 403 Forbidden, but specifically for use when authentication is
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:274:14: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
273 | /// to fulfil the request.
274 | static let notImplemented = HTTPStatus(code: 501, phrase: "Not Implemented")
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notImplemented' 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
275 |
276 | /// 502 Bad Gateway: server was acting as a gateway or proxy and received an invalid response
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:12:14: warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
| |- warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketAccept' 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
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:13:14: warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
| |- warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketKey' 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
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:14:14: warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
| |- warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketProtocol' 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
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:15:14: warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
| |- warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketVersion' 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
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPVersion.swift:22:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct HTTPVersion {
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
12 | public let major: UInt
13 | public let minor: UInt
:
20 |
21 | public extension HTTPVersion {
22 | static let `default` = HTTPVersion(major: 1, minor: 1)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' 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
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
[56/74] Compiling Telegraph WebSocket.swift
[57/74] Compiling Telegraph WebSocketConfig.swift
[58/74] Compiling Telegraph WebSocketConnection.swift
[59/74] Compiling Telegraph WebSocketError.swift
[60/74] Compiling Telegraph WebSocketMessage+Write.swift
[61/74] Compiling Telegraph WebSocketMessage.swift
[62/74] Compiling Telegraph FileManager+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[63/74] Compiling Telegraph NSRegularExpression+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[64/74] Compiling Telegraph String+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[65/74] Compiling Telegraph UInt+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[66/74] Compiling Telegraph URL+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[67/74] Compiling Telegraph RFC1123.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[68/74] Compiling Telegraph SynchronizedSet.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' 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
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[69/74] Compiling Telegraph Endpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
[70/74] Compiling Telegraph Streams.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
[71/74] Compiling Telegraph TCPConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
[72/74] Compiling Telegraph TCPListener.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
[73/74] Compiling Telegraph TCPSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
[74/74] Compiling Telegraph URI.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
91 |
92 | /// Returns the part of the path that doesn't overlap.
Build complete! (17.78s)
Build complete.
{
"dependencies" : [
{
"identity" : "cocoaasyncsocket",
"requirement" : {
"range" : [
{
"lower_bound" : "7.6.5",
"upper_bound" : "8.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/robbiehanson/CocoaAsyncSocket.git"
},
{
"identity" : "httpparserc",
"requirement" : {
"range" : [
{
"lower_bound" : "9.2.0",
"upper_bound" : "10.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Building42/HTTPParserC.git"
}
],
"manifest_display_name" : "Telegraph",
"name" : "Telegraph",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "macos",
"version" : "10.10"
}
],
"products" : [
{
"name" : "Telegraph",
"targets" : [
"Telegraph"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "TelegraphTests",
"module_type" : "SwiftTarget",
"name" : "TelegraphTests",
"path" : "Tests",
"product_dependencies" : [
"CocoaAsyncSocket",
"HTTPParserC"
],
"sources" : [
"HelperTests.swift",
"Host/AppDelegate.swift",
"RouteTests.swift",
"SecurityTests.swift",
"ServerTests.swift",
"URITests.swift",
"URLTests.swift"
],
"target_dependencies" : [
"Telegraph"
],
"type" : "test"
},
{
"c99name" : "Telegraph",
"module_type" : "SwiftTarget",
"name" : "Telegraph",
"path" : "Sources",
"product_dependencies" : [
"CocoaAsyncSocket",
"HTTPParserC"
],
"product_memberships" : [
"Telegraph"
],
"sources" : [
"Clients/Client+Config.swift",
"Clients/WebSocketClient.swift",
"Clients/WebSocketClientError.swift",
"Helpers/Deprecations.swift",
"Helpers/DispatchTimer.swift",
"Helpers/Extensions/Array+Ext.swift",
"Helpers/Extensions/Data+Ext.swift",
"Helpers/Extensions/FileManager+Ext.swift",
"Helpers/Extensions/NSRegularExpression+Ext.swift",
"Helpers/Extensions/String+Ext.swift",
"Helpers/Extensions/UInt+Ext.swift",
"Helpers/Extensions/URL+Ext.swift",
"Helpers/RFC1123.swift",
"Helpers/SynchronizedSet.swift",
"Protocols/HTTP/Handlers/HTTPErrorDefaultHandler.swift",
"Protocols/HTTP/Handlers/HTTPErrorHandler.swift",
"Protocols/HTTP/Handlers/HTTPFileHandler.swift",
"Protocols/HTTP/Handlers/HTTPRequestHandler.swift",
"Protocols/HTTP/Models/HTTPConfig.swift",
"Protocols/HTTP/Models/HTTPConnection.swift",
"Protocols/HTTP/Models/HTTPError.swift",
"Protocols/HTTP/Models/HTTPHeader+Common.swift",
"Protocols/HTTP/Models/HTTPHeader.swift",
"Protocols/HTTP/Models/HTTPMessage.swift",
"Protocols/HTTP/Models/HTTPMethod.swift",
"Protocols/HTTP/Models/HTTPParser+Raw.swift",
"Protocols/HTTP/Models/HTTPParser.swift",
"Protocols/HTTP/Models/HTTPRequest+Host.swift",
"Protocols/HTTP/Models/HTTPRequest.swift",
"Protocols/HTTP/Models/HTTPResponse.swift",
"Protocols/HTTP/Models/HTTPStatus.swift",
"Protocols/HTTP/Models/HTTPVersion.swift",
"Protocols/HTTP/Routing/HTTPRoute.swift",
"Protocols/HTTP/Routing/HTTPRouteHandler.swift",
"Protocols/HTTP/Routing/Server+Routing.swift",
"Protocols/WebSockets/Handlers/HTTPWebSocketHandler.swift",
"Protocols/WebSockets/Handlers/WebSocketErrorDefaultHandler.swift",
"Protocols/WebSockets/Handlers/WebSocketErrorHandler.swift",
"Protocols/WebSockets/Handlers/WebSocketMessageDefaultHandler.swift",
"Protocols/WebSockets/Handlers/WebSocketMessageHandler.swift",
"Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift",
"Protocols/WebSockets/Models/HTTPMessage+WebSocket.swift",
"Protocols/WebSockets/Models/WebSocket.swift",
"Protocols/WebSockets/Models/WebSocketConfig.swift",
"Protocols/WebSockets/Models/WebSocketConnection.swift",
"Protocols/WebSockets/Models/WebSocketError.swift",
"Protocols/WebSockets/Models/WebSocketMessage+Write.swift",
"Protocols/WebSockets/Models/WebSocketMessage.swift",
"Protocols/WebSockets/Models/WebSocketParser.swift",
"Security/Certificate.swift",
"Security/CertificateIdentity.swift",
"Security/KeychainError.swift",
"Security/KeychainManager.swift",
"Security/SHA1.swift",
"Security/TLSConfig.swift",
"Security/TLSPolicy.swift",
"Server/Server+Config.swift",
"Server/Server.swift",
"Server/ServerDelegates.swift",
"Transport/DataStream.swift",
"Transport/Endpoint.swift",
"Transport/Streams.swift",
"Transport/TCPConnection.swift",
"Transport/TCPListener.swift",
"Transport/TCPSocket.swift",
"Transport/URI.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.