Build Information
Successful build of HTTPMediaTypes, reference 0.0.1 (cbbb33
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 04:59:28 UTC.
Swift 6 data race errors: 29
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
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Einstore/HTTPMediaTypes.git
Reference: 0.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Einstore/HTTPMediaTypes
* tag 0.0.1 -> FETCH_HEAD
HEAD is now at cbbb333 initial upload
Cloned https://github.com/Einstore/HTTPMediaTypes.git
Revision (git rev-parse @):
cbbb333bce74fbe5ef34648de1d3c2bfef2327fa
SUCCESS checkout https://github.com/Einstore/HTTPMediaTypes.git at 0.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "httpmediatypes",
"name": "HTTPMediaTypes",
"url": "https://github.com/Einstore/HTTPMediaTypes.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HTTPMediaTypes",
"dependencies": [
]
}
]
}
Fetching https://github.com/Einstore/HTTPMediaTypes.git
[1/17] Fetching httpmediatypes
Fetched https://github.com/Einstore/HTTPMediaTypes.git from cache (0.59s)
Creating working copy for https://github.com/Einstore/HTTPMediaTypes.git
Working copy of https://github.com/Einstore/HTTPMediaTypes.git resolved at 0.0.1 (cbbb333)
warning: '.resolve-product-dependencies': dependency 'httpmediatypes' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Einstore/HTTPMediaTypes.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/5] Compiling HTTPMediaTypes HTTPMediaType.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:177:16: warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
175 | public extension HTTPMediaType {
176 | /// Any media type (*/*).
177 | static let any = HTTPMediaType(type: "*", subType: "*")
| |- warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'any' 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
178 | /// Plain text media type.
179 | static let plainText = HTTPMediaType(type: "text", subType: "plain", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:179:16: warning: static property 'plainText' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
177 | static let any = HTTPMediaType(type: "*", subType: "*")
178 | /// Plain text media type.
179 | static let plainText = HTTPMediaType(type: "text", subType: "plain", parameters: ["charset": "utf-8"])
| |- warning: static property 'plainText' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'plainText' 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
180 | /// HTML media type.
181 | static let html = HTTPMediaType(type: "text", subType: "html", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:181:16: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
179 | static let plainText = HTTPMediaType(type: "text", subType: "plain", parameters: ["charset": "utf-8"])
180 | /// HTML media type.
181 | static let html = HTTPMediaType(type: "text", subType: "html", parameters: ["charset": "utf-8"])
| |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'html' 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
182 | /// CSS media type.
183 | static let css = HTTPMediaType(type: "text", subType: "css", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:183:16: warning: static property 'css' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
181 | static let html = HTTPMediaType(type: "text", subType: "html", parameters: ["charset": "utf-8"])
182 | /// CSS media type.
183 | static let css = HTTPMediaType(type: "text", subType: "css", parameters: ["charset": "utf-8"])
| |- warning: static property 'css' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'css' 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 | /// URL encoded form media type.
185 | static let urlEncodedForm = HTTPMediaType(type: "application", subType: "x-www-form-urlencoded", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:185:16: warning: static property 'urlEncodedForm' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
183 | static let css = HTTPMediaType(type: "text", subType: "css", parameters: ["charset": "utf-8"])
184 | /// URL encoded form media type.
185 | static let urlEncodedForm = HTTPMediaType(type: "application", subType: "x-www-form-urlencoded", parameters: ["charset": "utf-8"])
| |- warning: static property 'urlEncodedForm' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'urlEncodedForm' 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
186 | /// Multipart encoded form data.
187 | static let formData = HTTPMediaType(type: "multipart", subType: "form-data")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:187:16: warning: static property 'formData' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
185 | static let urlEncodedForm = HTTPMediaType(type: "application", subType: "x-www-form-urlencoded", parameters: ["charset": "utf-8"])
186 | /// Multipart encoded form data.
187 | static let formData = HTTPMediaType(type: "multipart", subType: "form-data")
| |- warning: static property 'formData' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'formData' 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
188 | /// Mixed multipart encoded data.
189 | static let multipart = HTTPMediaType(type: "multipart", subType: "mixed")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:189:16: warning: static property 'multipart' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
187 | static let formData = HTTPMediaType(type: "multipart", subType: "form-data")
188 | /// Mixed multipart encoded data.
189 | static let multipart = HTTPMediaType(type: "multipart", subType: "mixed")
| |- warning: static property 'multipart' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'multipart' 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 | /// JSON media type.
191 | static let json = HTTPMediaType(type: "application", subType: "json", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:191:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
189 | static let multipart = HTTPMediaType(type: "multipart", subType: "mixed")
190 | /// JSON media type.
191 | static let json = HTTPMediaType(type: "application", subType: "json", parameters: ["charset": "utf-8"])
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'json' 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
192 | /// JSON API media type (see https://jsonapi.org/format/).
193 | static let jsonAPI = HTTPMediaType(type: "application", subType: "vnd.api+json", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:193:16: warning: static property 'jsonAPI' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
191 | static let json = HTTPMediaType(type: "application", subType: "json", parameters: ["charset": "utf-8"])
192 | /// JSON API media type (see https://jsonapi.org/format/).
193 | static let jsonAPI = HTTPMediaType(type: "application", subType: "vnd.api+json", parameters: ["charset": "utf-8"])
| |- warning: static property 'jsonAPI' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jsonAPI' 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
194 | /// XML media type.
195 | static let xml = HTTPMediaType(type: "application", subType: "xml", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:195:16: warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
193 | static let jsonAPI = HTTPMediaType(type: "application", subType: "vnd.api+json", parameters: ["charset": "utf-8"])
194 | /// XML media type.
195 | static let xml = HTTPMediaType(type: "application", subType: "xml", parameters: ["charset": "utf-8"])
| |- warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'xml' 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
196 | /// DTD media type.
197 | static let dtd = HTTPMediaType(type: "application", subType: "xml-dtd", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:197:16: warning: static property 'dtd' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
195 | static let xml = HTTPMediaType(type: "application", subType: "xml", parameters: ["charset": "utf-8"])
196 | /// DTD media type.
197 | static let dtd = HTTPMediaType(type: "application", subType: "xml-dtd", parameters: ["charset": "utf-8"])
| |- warning: static property 'dtd' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dtd' 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
198 | /// PDF data.
199 | static let pdf = HTTPMediaType(type: "application", subType: "pdf")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:199:16: warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
197 | static let dtd = HTTPMediaType(type: "application", subType: "xml-dtd", parameters: ["charset": "utf-8"])
198 | /// PDF data.
199 | static let pdf = HTTPMediaType(type: "application", subType: "pdf")
| |- warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pdf' 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
200 | /// Zip file.
201 | static let zip = HTTPMediaType(type: "application", subType: "zip")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:201:16: warning: static property 'zip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
199 | static let pdf = HTTPMediaType(type: "application", subType: "pdf")
200 | /// Zip file.
201 | static let zip = HTTPMediaType(type: "application", subType: "zip")
| |- warning: static property 'zip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zip' 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
202 | /// tar file.
203 | static let tar = HTTPMediaType(type: "application", subType: "x-tar")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:203:16: warning: static property 'tar' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
201 | static let zip = HTTPMediaType(type: "application", subType: "zip")
202 | /// tar file.
203 | static let tar = HTTPMediaType(type: "application", subType: "x-tar")
| |- warning: static property 'tar' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tar' 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
204 | /// Gzip file.
205 | static let gzip = HTTPMediaType(type: "application", subType: "x-gzip")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:205:16: warning: static property 'gzip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
203 | static let tar = HTTPMediaType(type: "application", subType: "x-tar")
204 | /// Gzip file.
205 | static let gzip = HTTPMediaType(type: "application", subType: "x-gzip")
| |- warning: static property 'gzip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gzip' 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
206 | /// Bzip2 file.
207 | static let bzip2 = HTTPMediaType(type: "application", subType: "x-bzip2")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:207:16: warning: static property 'bzip2' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
205 | static let gzip = HTTPMediaType(type: "application", subType: "x-gzip")
206 | /// Bzip2 file.
207 | static let bzip2 = HTTPMediaType(type: "application", subType: "x-bzip2")
| |- warning: static property 'bzip2' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bzip2' 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
208 | /// Binary data.
209 | static let binary = HTTPMediaType(type: "application", subType: "octet-stream")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:209:16: warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
207 | static let bzip2 = HTTPMediaType(type: "application", subType: "x-bzip2")
208 | /// Binary data.
209 | static let binary = HTTPMediaType(type: "application", subType: "octet-stream")
| |- warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'binary' 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
210 | /// GIF image.
211 | static let gif = HTTPMediaType(type: "image", subType: "gif")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:211:16: warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
209 | static let binary = HTTPMediaType(type: "application", subType: "octet-stream")
210 | /// GIF image.
211 | static let gif = HTTPMediaType(type: "image", subType: "gif")
| |- warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gif' 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
212 | /// JPEG image.
213 | static let jpeg = HTTPMediaType(type: "image", subType: "jpeg")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:213:16: warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
211 | static let gif = HTTPMediaType(type: "image", subType: "gif")
212 | /// JPEG image.
213 | static let jpeg = HTTPMediaType(type: "image", subType: "jpeg")
| |- warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jpeg' 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
214 | /// PNG image.
215 | static let png = HTTPMediaType(type: "image", subType: "png")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:215:16: warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
213 | static let jpeg = HTTPMediaType(type: "image", subType: "jpeg")
214 | /// PNG image.
215 | static let png = HTTPMediaType(type: "image", subType: "png")
| |- warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'png' 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
216 | /// SVG image.
217 | static let svg = HTTPMediaType(type: "image", subType: "svg+xml")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:217:16: warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
215 | static let png = HTTPMediaType(type: "image", subType: "png")
216 | /// SVG image.
217 | static let svg = HTTPMediaType(type: "image", subType: "svg+xml")
| |- warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'svg' 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
218 | /// Basic audio.
219 | static let audio = HTTPMediaType(type: "audio", subType: "basic")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:219:16: warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
217 | static let svg = HTTPMediaType(type: "image", subType: "svg+xml")
218 | /// Basic audio.
219 | static let audio = HTTPMediaType(type: "audio", subType: "basic")
| |- warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'audio' 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
220 | /// MIDI audio.
221 | static let midi = HTTPMediaType(type: "audio", subType: "x-midi")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:221:16: warning: static property 'midi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
219 | static let audio = HTTPMediaType(type: "audio", subType: "basic")
220 | /// MIDI audio.
221 | static let midi = HTTPMediaType(type: "audio", subType: "x-midi")
| |- warning: static property 'midi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'midi' 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
222 | /// MP3 audio.
223 | static let mp3 = HTTPMediaType(type: "audio", subType: "mpeg")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:223:16: warning: static property 'mp3' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
221 | static let midi = HTTPMediaType(type: "audio", subType: "x-midi")
222 | /// MP3 audio.
223 | static let mp3 = HTTPMediaType(type: "audio", subType: "mpeg")
| |- warning: static property 'mp3' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mp3' 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
224 | /// Wave audio.
225 | static let wave = HTTPMediaType(type: "audio", subType: "wav")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:225:16: warning: static property 'wave' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
223 | static let mp3 = HTTPMediaType(type: "audio", subType: "mpeg")
224 | /// Wave audio.
225 | static let wave = HTTPMediaType(type: "audio", subType: "wav")
| |- warning: static property 'wave' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wave' 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
226 | /// OGG audio.
227 | static let ogg = HTTPMediaType(type: "audio", subType: "vorbis")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:227:16: warning: static property 'ogg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
225 | static let wave = HTTPMediaType(type: "audio", subType: "wav")
226 | /// OGG audio.
227 | static let ogg = HTTPMediaType(type: "audio", subType: "vorbis")
| |- warning: static property 'ogg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ogg' 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
228 | /// AVI video.
229 | static let avi = HTTPMediaType(type: "video", subType: "avi")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:229:16: warning: static property 'avi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
227 | static let ogg = HTTPMediaType(type: "audio", subType: "vorbis")
228 | /// AVI video.
229 | static let avi = HTTPMediaType(type: "video", subType: "avi")
| |- warning: static property 'avi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'avi' 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
230 | /// MPEG video.
231 | static let mpeg = HTTPMediaType(type: "video", subType: "mpeg")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:231:16: warning: static property 'mpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
229 | static let avi = HTTPMediaType(type: "video", subType: "avi")
230 | /// MPEG video.
231 | static let mpeg = HTTPMediaType(type: "video", subType: "mpeg")
| |- warning: static property 'mpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mpeg' 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
232 | }
233 |
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:235:5: warning: let 'fileExtensionMediaTypeMapping' is not concurrency-safe because non-'Sendable' type '[String : HTTPMediaType]' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
233 |
234 | // MARK: Extensions
235 | let fileExtensionMediaTypeMapping: [String: HTTPMediaType] = [
| |- warning: let 'fileExtensionMediaTypeMapping' is not concurrency-safe because non-'Sendable' type '[String : HTTPMediaType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fileExtensionMediaTypeMapping' 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
236 | "ez": HTTPMediaType(type: "application", subType: "andrew-inset"),
237 | "anx": HTTPMediaType(type: "application", subType: "annodex"),
[4/5] Emitting module HTTPMediaTypes
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:177:16: warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
175 | public extension HTTPMediaType {
176 | /// Any media type (*/*).
177 | static let any = HTTPMediaType(type: "*", subType: "*")
| |- warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'any' 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
178 | /// Plain text media type.
179 | static let plainText = HTTPMediaType(type: "text", subType: "plain", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:179:16: warning: static property 'plainText' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
177 | static let any = HTTPMediaType(type: "*", subType: "*")
178 | /// Plain text media type.
179 | static let plainText = HTTPMediaType(type: "text", subType: "plain", parameters: ["charset": "utf-8"])
| |- warning: static property 'plainText' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'plainText' 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
180 | /// HTML media type.
181 | static let html = HTTPMediaType(type: "text", subType: "html", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:181:16: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
179 | static let plainText = HTTPMediaType(type: "text", subType: "plain", parameters: ["charset": "utf-8"])
180 | /// HTML media type.
181 | static let html = HTTPMediaType(type: "text", subType: "html", parameters: ["charset": "utf-8"])
| |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'html' 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
182 | /// CSS media type.
183 | static let css = HTTPMediaType(type: "text", subType: "css", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:183:16: warning: static property 'css' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
181 | static let html = HTTPMediaType(type: "text", subType: "html", parameters: ["charset": "utf-8"])
182 | /// CSS media type.
183 | static let css = HTTPMediaType(type: "text", subType: "css", parameters: ["charset": "utf-8"])
| |- warning: static property 'css' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'css' 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 | /// URL encoded form media type.
185 | static let urlEncodedForm = HTTPMediaType(type: "application", subType: "x-www-form-urlencoded", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:185:16: warning: static property 'urlEncodedForm' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
183 | static let css = HTTPMediaType(type: "text", subType: "css", parameters: ["charset": "utf-8"])
184 | /// URL encoded form media type.
185 | static let urlEncodedForm = HTTPMediaType(type: "application", subType: "x-www-form-urlencoded", parameters: ["charset": "utf-8"])
| |- warning: static property 'urlEncodedForm' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'urlEncodedForm' 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
186 | /// Multipart encoded form data.
187 | static let formData = HTTPMediaType(type: "multipart", subType: "form-data")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:187:16: warning: static property 'formData' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
185 | static let urlEncodedForm = HTTPMediaType(type: "application", subType: "x-www-form-urlencoded", parameters: ["charset": "utf-8"])
186 | /// Multipart encoded form data.
187 | static let formData = HTTPMediaType(type: "multipart", subType: "form-data")
| |- warning: static property 'formData' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'formData' 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
188 | /// Mixed multipart encoded data.
189 | static let multipart = HTTPMediaType(type: "multipart", subType: "mixed")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:189:16: warning: static property 'multipart' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
187 | static let formData = HTTPMediaType(type: "multipart", subType: "form-data")
188 | /// Mixed multipart encoded data.
189 | static let multipart = HTTPMediaType(type: "multipart", subType: "mixed")
| |- warning: static property 'multipart' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'multipart' 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 | /// JSON media type.
191 | static let json = HTTPMediaType(type: "application", subType: "json", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:191:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
189 | static let multipart = HTTPMediaType(type: "multipart", subType: "mixed")
190 | /// JSON media type.
191 | static let json = HTTPMediaType(type: "application", subType: "json", parameters: ["charset": "utf-8"])
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'json' 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
192 | /// JSON API media type (see https://jsonapi.org/format/).
193 | static let jsonAPI = HTTPMediaType(type: "application", subType: "vnd.api+json", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:193:16: warning: static property 'jsonAPI' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
191 | static let json = HTTPMediaType(type: "application", subType: "json", parameters: ["charset": "utf-8"])
192 | /// JSON API media type (see https://jsonapi.org/format/).
193 | static let jsonAPI = HTTPMediaType(type: "application", subType: "vnd.api+json", parameters: ["charset": "utf-8"])
| |- warning: static property 'jsonAPI' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jsonAPI' 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
194 | /// XML media type.
195 | static let xml = HTTPMediaType(type: "application", subType: "xml", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:195:16: warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
193 | static let jsonAPI = HTTPMediaType(type: "application", subType: "vnd.api+json", parameters: ["charset": "utf-8"])
194 | /// XML media type.
195 | static let xml = HTTPMediaType(type: "application", subType: "xml", parameters: ["charset": "utf-8"])
| |- warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'xml' 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
196 | /// DTD media type.
197 | static let dtd = HTTPMediaType(type: "application", subType: "xml-dtd", parameters: ["charset": "utf-8"])
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:197:16: warning: static property 'dtd' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
195 | static let xml = HTTPMediaType(type: "application", subType: "xml", parameters: ["charset": "utf-8"])
196 | /// DTD media type.
197 | static let dtd = HTTPMediaType(type: "application", subType: "xml-dtd", parameters: ["charset": "utf-8"])
| |- warning: static property 'dtd' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dtd' 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
198 | /// PDF data.
199 | static let pdf = HTTPMediaType(type: "application", subType: "pdf")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:199:16: warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
197 | static let dtd = HTTPMediaType(type: "application", subType: "xml-dtd", parameters: ["charset": "utf-8"])
198 | /// PDF data.
199 | static let pdf = HTTPMediaType(type: "application", subType: "pdf")
| |- warning: static property 'pdf' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pdf' 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
200 | /// Zip file.
201 | static let zip = HTTPMediaType(type: "application", subType: "zip")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:201:16: warning: static property 'zip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
199 | static let pdf = HTTPMediaType(type: "application", subType: "pdf")
200 | /// Zip file.
201 | static let zip = HTTPMediaType(type: "application", subType: "zip")
| |- warning: static property 'zip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zip' 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
202 | /// tar file.
203 | static let tar = HTTPMediaType(type: "application", subType: "x-tar")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:203:16: warning: static property 'tar' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
201 | static let zip = HTTPMediaType(type: "application", subType: "zip")
202 | /// tar file.
203 | static let tar = HTTPMediaType(type: "application", subType: "x-tar")
| |- warning: static property 'tar' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tar' 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
204 | /// Gzip file.
205 | static let gzip = HTTPMediaType(type: "application", subType: "x-gzip")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:205:16: warning: static property 'gzip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
203 | static let tar = HTTPMediaType(type: "application", subType: "x-tar")
204 | /// Gzip file.
205 | static let gzip = HTTPMediaType(type: "application", subType: "x-gzip")
| |- warning: static property 'gzip' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gzip' 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
206 | /// Bzip2 file.
207 | static let bzip2 = HTTPMediaType(type: "application", subType: "x-bzip2")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:207:16: warning: static property 'bzip2' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
205 | static let gzip = HTTPMediaType(type: "application", subType: "x-gzip")
206 | /// Bzip2 file.
207 | static let bzip2 = HTTPMediaType(type: "application", subType: "x-bzip2")
| |- warning: static property 'bzip2' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bzip2' 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
208 | /// Binary data.
209 | static let binary = HTTPMediaType(type: "application", subType: "octet-stream")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:209:16: warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
207 | static let bzip2 = HTTPMediaType(type: "application", subType: "x-bzip2")
208 | /// Binary data.
209 | static let binary = HTTPMediaType(type: "application", subType: "octet-stream")
| |- warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'binary' 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
210 | /// GIF image.
211 | static let gif = HTTPMediaType(type: "image", subType: "gif")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:211:16: warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
209 | static let binary = HTTPMediaType(type: "application", subType: "octet-stream")
210 | /// GIF image.
211 | static let gif = HTTPMediaType(type: "image", subType: "gif")
| |- warning: static property 'gif' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gif' 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
212 | /// JPEG image.
213 | static let jpeg = HTTPMediaType(type: "image", subType: "jpeg")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:213:16: warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
211 | static let gif = HTTPMediaType(type: "image", subType: "gif")
212 | /// JPEG image.
213 | static let jpeg = HTTPMediaType(type: "image", subType: "jpeg")
| |- warning: static property 'jpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'jpeg' 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
214 | /// PNG image.
215 | static let png = HTTPMediaType(type: "image", subType: "png")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:215:16: warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
213 | static let jpeg = HTTPMediaType(type: "image", subType: "jpeg")
214 | /// PNG image.
215 | static let png = HTTPMediaType(type: "image", subType: "png")
| |- warning: static property 'png' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'png' 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
216 | /// SVG image.
217 | static let svg = HTTPMediaType(type: "image", subType: "svg+xml")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:217:16: warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
215 | static let png = HTTPMediaType(type: "image", subType: "png")
216 | /// SVG image.
217 | static let svg = HTTPMediaType(type: "image", subType: "svg+xml")
| |- warning: static property 'svg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'svg' 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
218 | /// Basic audio.
219 | static let audio = HTTPMediaType(type: "audio", subType: "basic")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:219:16: warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
217 | static let svg = HTTPMediaType(type: "image", subType: "svg+xml")
218 | /// Basic audio.
219 | static let audio = HTTPMediaType(type: "audio", subType: "basic")
| |- warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'audio' 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
220 | /// MIDI audio.
221 | static let midi = HTTPMediaType(type: "audio", subType: "x-midi")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:221:16: warning: static property 'midi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
219 | static let audio = HTTPMediaType(type: "audio", subType: "basic")
220 | /// MIDI audio.
221 | static let midi = HTTPMediaType(type: "audio", subType: "x-midi")
| |- warning: static property 'midi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'midi' 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
222 | /// MP3 audio.
223 | static let mp3 = HTTPMediaType(type: "audio", subType: "mpeg")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:223:16: warning: static property 'mp3' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
221 | static let midi = HTTPMediaType(type: "audio", subType: "x-midi")
222 | /// MP3 audio.
223 | static let mp3 = HTTPMediaType(type: "audio", subType: "mpeg")
| |- warning: static property 'mp3' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mp3' 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
224 | /// Wave audio.
225 | static let wave = HTTPMediaType(type: "audio", subType: "wav")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:225:16: warning: static property 'wave' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
223 | static let mp3 = HTTPMediaType(type: "audio", subType: "mpeg")
224 | /// Wave audio.
225 | static let wave = HTTPMediaType(type: "audio", subType: "wav")
| |- warning: static property 'wave' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wave' 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
226 | /// OGG audio.
227 | static let ogg = HTTPMediaType(type: "audio", subType: "vorbis")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:227:16: warning: static property 'ogg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
225 | static let wave = HTTPMediaType(type: "audio", subType: "wav")
226 | /// OGG audio.
227 | static let ogg = HTTPMediaType(type: "audio", subType: "vorbis")
| |- warning: static property 'ogg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ogg' 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
228 | /// AVI video.
229 | static let avi = HTTPMediaType(type: "video", subType: "avi")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:229:16: warning: static property 'avi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
227 | static let ogg = HTTPMediaType(type: "audio", subType: "vorbis")
228 | /// AVI video.
229 | static let avi = HTTPMediaType(type: "video", subType: "avi")
| |- warning: static property 'avi' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'avi' 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
230 | /// MPEG video.
231 | static let mpeg = HTTPMediaType(type: "video", subType: "mpeg")
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:231:16: warning: static property 'mpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
229 | static let avi = HTTPMediaType(type: "video", subType: "avi")
230 | /// MPEG video.
231 | static let mpeg = HTTPMediaType(type: "video", subType: "mpeg")
| |- warning: static property 'mpeg' is not concurrency-safe because non-'Sendable' type 'HTTPMediaType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mpeg' 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
232 | }
233 |
/Users/admin/builder/spi-builder-workspace/Sources/HTTPMediaTypes/HTTPMediaType.swift:235:5: warning: let 'fileExtensionMediaTypeMapping' is not concurrency-safe because non-'Sendable' type '[String : HTTPMediaType]' may have shared mutable state; this is an error in the Swift 6 language mode
50 | /// ; to use within parameter values
51 | ///
52 | public struct HTTPMediaType: Hashable, CustomStringConvertible, Equatable {
| `- note: consider making struct 'HTTPMediaType' conform to the 'Sendable' protocol
53 | /// See `Equatable`.
54 | public static func ==(lhs: HTTPMediaType, rhs: HTTPMediaType) -> Bool {
:
233 |
234 | // MARK: Extensions
235 | let fileExtensionMediaTypeMapping: [String: HTTPMediaType] = [
| |- warning: let 'fileExtensionMediaTypeMapping' is not concurrency-safe because non-'Sendable' type '[String : HTTPMediaType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fileExtensionMediaTypeMapping' 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
236 | "ez": HTTPMediaType(type: "application", subType: "andrew-inset"),
237 | "anx": HTTPMediaType(type: "application", subType: "annodex"),
[5/5] Compiling HTTPMediaTypes HTTPHeaderValue.swift
Build complete! (6.53s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "HTTPMediaTypes",
"name" : "HTTPMediaTypes",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "HTTPMediaTypes",
"targets" : [
"HTTPMediaTypes"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HTTPMediaTypes",
"module_type" : "SwiftTarget",
"name" : "HTTPMediaTypes",
"path" : "Sources/HTTPMediaTypes",
"product_memberships" : [
"HTTPMediaTypes"
],
"sources" : [
"HTTPHeaderValue.swift",
"HTTPMediaType.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.