Build Information
Failed to build universal, reference main (fb85d1), with Swift 6.2 for Wasm on 6 Oct 2025 23:03:08 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marcprux/universal.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/marcprux/universal
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at fb85d16 Have XML link to libz on Android and Linux
Cloned https://github.com/marcprux/universal.git
Revision (git rev-parse @):
fb85d16438bd3aadd0241b087d784bfa5a4f902a
SUCCESS checkout https://github.com/marcprux/universal.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/marcprux/universal.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f6b6b9bdb5d5605d727da337418fc455cd8a0394d3a815b70631008c48829755
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/embedded-swift-sdk.json
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/9] Emitting module Either
/host/spi-builder-workspace/Sources/Either/Either.swift:184:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
182 |
183 | extension Either : Encodable where A : Encodable {
184 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
185 | var container = encoder.singleValueContainer()
186 | try container.encode(self.rawValue)
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:183:20: error: 'Encodable' is unavailable: unavailable in embedded Swift
181 | extension Either.Or : Hashable where A : Hashable, B : Hashable { }
182 |
183 | extension Either : Encodable where A : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
184 | public func encode(to encoder: Encoder) throws {
185 | var container = encoder.singleValueContainer()
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:183:40: error: 'Encodable' is unavailable: unavailable in embedded Swift
181 | extension Either.Or : Hashable where A : Hashable, B : Hashable { }
182 |
183 | extension Either : Encodable where A : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
184 | public func encode(to encoder: Encoder) throws {
185 | var container = encoder.singleValueContainer()
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:191:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
189 |
190 | extension Either.Or : Encodable where A : Encodable, B : Encodable {
191 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
192 | // we differ from the default Encodable behavior of enums in that we encode the underlying values directly, without referencing the case names
193 | var container = encoder.singleValueContainer()
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:190:23: error: 'Encodable' is unavailable: unavailable in embedded Swift
188 | }
189 |
190 | extension Either.Or : Encodable where A : Encodable, B : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
191 | public func encode(to encoder: Encoder) throws {
192 | // we differ from the default Encodable behavior of enums in that we encode the underlying values directly, without referencing the case names
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:190:43: error: 'Encodable' is unavailable: unavailable in embedded Swift
188 | }
189 |
190 | extension Either.Or : Encodable where A : Encodable, B : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
191 | public func encode(to encoder: Encoder) throws {
192 | // we differ from the default Encodable behavior of enums in that we encode the underlying values directly, without referencing the case names
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:190:58: error: 'Encodable' is unavailable: unavailable in embedded Swift
188 | }
189 |
190 | extension Either.Or : Encodable where A : Encodable, B : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
191 | public func encode(to encoder: Encoder) throws {
192 | // we differ from the default Encodable behavior of enums in that we encode the underlying values directly, without referencing the case names
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:203:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
201 |
202 | extension Either : Decodable where A : Decodable {
203 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
204 | let container = try decoder.singleValueContainer()
205 | let element = try container.decode(A.self)
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:202:20: error: 'Decodable' is unavailable: unavailable in embedded Swift
200 |
201 |
202 | extension Either : Decodable where A : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
203 | public init(from decoder: Decoder) throws {
204 | let container = try decoder.singleValueContainer()
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:202:40: error: 'Decodable' is unavailable: unavailable in embedded Swift
200 |
201 |
202 | extension Either : Decodable where A : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
203 | public init(from decoder: Decoder) throws {
204 | let container = try decoder.singleValueContainer()
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:212:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
210 | extension Either.Or : Decodable where A : Decodable, B : Decodable {
211 | /// `Either.Or` implements decodable for brute-force trying to decode first `A` and then `B`
212 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
213 | do {
214 | self = try .a(.init(from: decoder))
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:210:23: error: 'Decodable' is unavailable: unavailable in embedded Swift
208 | }
209 |
210 | extension Either.Or : Decodable where A : Decodable, B : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
211 | /// `Either.Or` implements decodable for brute-force trying to decode first `A` and then `B`
212 | public init(from decoder: Decoder) throws {
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:210:43: error: 'Decodable' is unavailable: unavailable in embedded Swift
208 | }
209 |
210 | extension Either.Or : Decodable where A : Decodable, B : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
211 | /// `Either.Or` implements decodable for brute-force trying to decode first `A` and then `B`
212 | public init(from decoder: Decoder) throws {
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:210:58: error: 'Decodable' is unavailable: unavailable in embedded Swift
208 | }
209 |
210 | extension Either.Or : Decodable where A : Decodable, B : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
211 | /// `Either.Or` implements decodable for brute-force trying to decode first `A` and then `B`
212 | public init(from decoder: Decoder) throws {
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:319:1: warning: extension declares a conformance of imported type 'Never' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
317 |
318 | /// Useful extension for when a `OneOfX<A, B, …, Never>` wants to be treated as `Codable`
319 | extension Never : Decodable {
| |- warning: extension declares a conformance of imported type 'Never' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
320 | /// Throws an error, since it should never be decodable
321 | public init(from decoder: Decoder) throws {
/host/spi-builder-workspace/Sources/Either/Either.swift:321:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
319 | extension Never : Decodable {
320 | /// Throws an error, since it should never be decodable
321 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
322 | throw NeverCodableError.decodableNever
323 | }
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:319:19: error: 'Decodable' is unavailable: unavailable in embedded Swift
317 |
318 | /// Useful extension for when a `OneOfX<A, B, …, Never>` wants to be treated as `Codable`
319 | extension Never : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
320 | /// Throws an error, since it should never be decodable
321 | public init(from decoder: Decoder) throws {
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:327:1: warning: extension declares a conformance of imported type 'Never' to imported protocol 'Encodable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
325 |
326 | /// Useful extension for when a `OneOfX<A, B, …, Never>` wants to be treated as `Codable`
327 | extension Never : Encodable {
| |- warning: extension declares a conformance of imported type 'Never' to imported protocol 'Encodable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
328 | /// Throws an error, since it should never be encodable
329 | public func encode(to encoder: Encoder) throws {
/host/spi-builder-workspace/Sources/Either/Either.swift:329:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
327 | extension Never : Encodable {
328 | /// Throws an error, since it should never be encodable
329 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
330 | throw NeverCodableError.encodableNever
331 | }
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:327:19: error: 'Encodable' is unavailable: unavailable in embedded Swift
325 |
326 | /// Useful extension for when a `OneOfX<A, B, …, Never>` wants to be treated as `Codable`
327 | extension Never : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
328 | /// Throws an error, since it should never be encodable
329 | public func encode(to encoder: Encoder) throws {
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:384:47: error: 'Encoder' is unavailable: unavailable in embedded Swift
382 | // https://github.com/apple/swift/blob/325a63a1bd59eb2b12ba310ffa93e83d1336885f/stdlib/public/core/Codable.swift.gyb#L1825
383 | extension Indirect : Encodable where Wrapped : Encodable {
384 | @inlinable public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
385 | var container = encoder.singleValueContainer()
386 | try container.encode(self.rawValue)
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:383:22: error: 'Encodable' is unavailable: unavailable in embedded Swift
381 | // similar to Optional codability at:
382 | // https://github.com/apple/swift/blob/325a63a1bd59eb2b12ba310ffa93e83d1336885f/stdlib/public/core/Codable.swift.gyb#L1825
383 | extension Indirect : Encodable where Wrapped : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
384 | @inlinable public func encode(to encoder: Encoder) throws {
385 | var container = encoder.singleValueContainer()
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:383:48: error: 'Encodable' is unavailable: unavailable in embedded Swift
381 | // similar to Optional codability at:
382 | // https://github.com/apple/swift/blob/325a63a1bd59eb2b12ba310ffa93e83d1336885f/stdlib/public/core/Codable.swift.gyb#L1825
383 | extension Indirect : Encodable where Wrapped : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
384 | @inlinable public func encode(to encoder: Encoder) throws {
385 | var container = encoder.singleValueContainer()
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:394:42: error: 'Decoder' is unavailable: unavailable in embedded Swift
392 | // FIXME: doesn't work when nested
393 | extension Indirect : Decodable where Wrapped : Decodable {
394 | @inlinable public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
395 | let container = try decoder.singleValueContainer()
396 | let element = try container.decode(Wrapped.self)
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:393:22: error: 'Decodable' is unavailable: unavailable in embedded Swift
391 | // https://github.com/apple/swift/blob/325a63a1bd59eb2b12ba310ffa93e83d1336885f/stdlib/public/core/Codable.swift.gyb#L1842
392 | // FIXME: doesn't work when nested
393 | extension Indirect : Decodable where Wrapped : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
394 | @inlinable public init(from decoder: Decoder) throws {
395 | let container = try decoder.singleValueContainer()
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:393:48: error: 'Decodable' is unavailable: unavailable in embedded Swift
391 | // https://github.com/apple/swift/blob/325a63a1bd59eb2b12ba310ffa93e83d1336885f/stdlib/public/core/Codable.swift.gyb#L1842
392 | // FIXME: doesn't work when nested
393 | extension Indirect : Decodable where Wrapped : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
394 | @inlinable public init(from decoder: Decoder) throws {
395 | let container = try decoder.singleValueContainer()
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:419:35: error: 'Codable' is unavailable: unavailable in embedded Swift
417 | /// Codable implementation does not automatically use the underlying type (like
418 | /// it does with primitives and Strings)
419 | public protocol Alias : Isomorph, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
420 | }
421 |
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Either/Either.swift:565:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
563 | extension Dictionary.ValueContainer : Encodable where Value : Encodable, Key : Encodable {
564 | /// `ValueContainer` serializes to the underlying type's encoding with any intermediate wrapper
565 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
566 | try rawValue.encode(to: encoder)
567 | }
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:563:39: error: 'Encodable' is unavailable: unavailable in embedded Swift
561 | extension Dictionary.ValueContainer : Hashable where Value : Hashable { }
562 |
563 | extension Dictionary.ValueContainer : Encodable where Value : Encodable, Key : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
564 | /// `ValueContainer` serializes to the underlying type's encoding with any intermediate wrapper
565 | public func encode(to encoder: Encoder) throws {
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:563:63: error: 'Encodable' is unavailable: unavailable in embedded Swift
561 | extension Dictionary.ValueContainer : Hashable where Value : Hashable { }
562 |
563 | extension Dictionary.ValueContainer : Encodable where Value : Encodable, Key : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
564 | /// `ValueContainer` serializes to the underlying type's encoding with any intermediate wrapper
565 | public func encode(to encoder: Encoder) throws {
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:563:80: error: 'Encodable' is unavailable: unavailable in embedded Swift
561 | extension Dictionary.ValueContainer : Hashable where Value : Hashable { }
562 |
563 | extension Dictionary.ValueContainer : Encodable where Value : Encodable, Key : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
564 | /// `ValueContainer` serializes to the underlying type's encoding with any intermediate wrapper
565 | public func encode(to encoder: Encoder) throws {
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:570:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
568 | }
569 | extension Dictionary.ValueContainer : Decodable where Value : Decodable, Key : Decodable {
570 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
571 | try self.init(rawValue: RawValue(from: decoder))
572 | }
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:569:39: error: 'Decodable' is unavailable: unavailable in embedded Swift
567 | }
568 | }
569 | extension Dictionary.ValueContainer : Decodable where Value : Decodable, Key : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
570 | public init(from decoder: Decoder) throws {
571 | try self.init(rawValue: RawValue(from: decoder))
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:569:63: error: 'Decodable' is unavailable: unavailable in embedded Swift
567 | }
568 | }
569 | extension Dictionary.ValueContainer : Decodable where Value : Decodable, Key : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
570 | public init(from decoder: Decoder) throws {
571 | try self.init(rawValue: RawValue(from: decoder))
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:569:80: error: 'Decodable' is unavailable: unavailable in embedded Swift
567 | }
568 | }
569 | extension Dictionary.ValueContainer : Decodable where Value : Decodable, Key : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
570 | public init(from decoder: Decoder) throws {
571 | try self.init(rawValue: RawValue(from: decoder))
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:186:23: error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
184 | public func encode(to encoder: Encoder) throws {
185 | var container = encoder.singleValueContainer()
186 | try container.encode(self.rawValue)
| `- error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
187 | }
188 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:195:39: error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
193 | var container = encoder.singleValueContainer()
194 | switch self {
195 | case .a(let x): try container.encode(x)
| `- error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
196 | case .b(let x): try container.encode(x)
197 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:196:39: error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
194 | switch self {
195 | case .a(let x): try container.encode(x)
196 | case .b(let x): try container.encode(x)
| `- error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
197 | }
198 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:205:37: error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
203 | public init(from decoder: Decoder) throws {
204 | let container = try decoder.singleValueContainer()
205 | let element = try container.decode(A.self)
| `- error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
206 | self.init(rawValue: element)
207 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:386:23: error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
384 | @inlinable public func encode(to encoder: Encoder) throws {
385 | var container = encoder.singleValueContainer()
386 | try container.encode(self.rawValue)
| `- error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
387 | }
388 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:396:37: error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
394 | @inlinable public init(from decoder: Decoder) throws {
395 | let container = try decoder.singleValueContainer()
396 | let element = try container.decode(Wrapped.self)
| `- error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
397 | self.init(element)
398 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:566:22: error: referencing instance method 'encode(to:)' on 'Either.Or' requires that '[Value]' conform to 'Encodable'
188 | }
189 |
190 | extension Either.Or : Encodable where A : Encodable, B : Encodable {
| `- note: where 'A' = '[Value]'
191 | public func encode(to encoder: Encoder) throws {
192 | // we differ from the default Encodable behavior of enums in that we encode the underlying values directly, without referencing the case names
:
564 | /// `ValueContainer` serializes to the underlying type's encoding with any intermediate wrapper
565 | public func encode(to encoder: Encoder) throws {
566 | try rawValue.encode(to: encoder)
| `- error: referencing instance method 'encode(to:)' on 'Either.Or' requires that '[Value]' conform to 'Encodable'
567 | }
568 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:566:22: error: referencing instance method 'encode(to:)' on 'Either.Or' requires that '[Key : Value]' conform to 'Encodable'
188 | }
189 |
190 | extension Either.Or : Encodable where A : Encodable, B : Encodable {
| `- note: where 'B' = '[Key : Value]'
191 | public func encode(to encoder: Encoder) throws {
192 | // we differ from the default Encodable behavior of enums in that we encode the underlying values directly, without referencing the case names
:
564 | /// `ValueContainer` serializes to the underlying type's encoding with any intermediate wrapper
565 | public func encode(to encoder: Encoder) throws {
566 | try rawValue.encode(to: encoder)
| `- error: referencing instance method 'encode(to:)' on 'Either.Or' requires that '[Key : Value]' conform to 'Encodable'
567 | }
568 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:571:33: error: referencing initializer 'init(from:)' on 'Either.Or' requires that '[Value]' conform to 'Decodable'
208 | }
209 |
210 | extension Either.Or : Decodable where A : Decodable, B : Decodable {
| `- note: where 'A' = '[Value]'
211 | /// `Either.Or` implements decodable for brute-force trying to decode first `A` and then `B`
212 | public init(from decoder: Decoder) throws {
:
569 | extension Dictionary.ValueContainer : Decodable where Value : Decodable, Key : Decodable {
570 | public init(from decoder: Decoder) throws {
571 | try self.init(rawValue: RawValue(from: decoder))
| `- error: referencing initializer 'init(from:)' on 'Either.Or' requires that '[Value]' conform to 'Decodable'
572 | }
573 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:571:33: error: referencing initializer 'init(from:)' on 'Either.Or' requires that '[Key : Value]' conform to 'Decodable'
208 | }
209 |
210 | extension Either.Or : Decodable where A : Decodable, B : Decodable {
| `- note: where 'B' = '[Key : Value]'
211 | /// `Either.Or` implements decodable for brute-force trying to decode first `A` and then `B`
212 | public init(from decoder: Decoder) throws {
:
569 | extension Dictionary.ValueContainer : Decodable where Value : Decodable, Key : Decodable {
570 | public init(from decoder: Decoder) throws {
571 | try self.init(rawValue: RawValue(from: decoder))
| `- error: referencing initializer 'init(from:)' on 'Either.Or' requires that '[Key : Value]' conform to 'Decodable'
572 | }
573 | }
[9/9] Compiling Either Either.swift
/host/spi-builder-workspace/Sources/Either/Either.swift:184:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
182 |
183 | extension Either : Encodable where A : Encodable {
184 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
185 | var container = encoder.singleValueContainer()
186 | try container.encode(self.rawValue)
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:183:20: error: 'Encodable' is unavailable: unavailable in embedded Swift
181 | extension Either.Or : Hashable where A : Hashable, B : Hashable { }
182 |
183 | extension Either : Encodable where A : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
184 | public func encode(to encoder: Encoder) throws {
185 | var container = encoder.singleValueContainer()
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:183:40: error: 'Encodable' is unavailable: unavailable in embedded Swift
181 | extension Either.Or : Hashable where A : Hashable, B : Hashable { }
182 |
183 | extension Either : Encodable where A : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
184 | public func encode(to encoder: Encoder) throws {
185 | var container = encoder.singleValueContainer()
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:191:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
189 |
190 | extension Either.Or : Encodable where A : Encodable, B : Encodable {
191 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
192 | // we differ from the default Encodable behavior of enums in that we encode the underlying values directly, without referencing the case names
193 | var container = encoder.singleValueContainer()
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:190:23: error: 'Encodable' is unavailable: unavailable in embedded Swift
188 | }
189 |
190 | extension Either.Or : Encodable where A : Encodable, B : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
191 | public func encode(to encoder: Encoder) throws {
192 | // we differ from the default Encodable behavior of enums in that we encode the underlying values directly, without referencing the case names
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:190:43: error: 'Encodable' is unavailable: unavailable in embedded Swift
188 | }
189 |
190 | extension Either.Or : Encodable where A : Encodable, B : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
191 | public func encode(to encoder: Encoder) throws {
192 | // we differ from the default Encodable behavior of enums in that we encode the underlying values directly, without referencing the case names
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:190:58: error: 'Encodable' is unavailable: unavailable in embedded Swift
188 | }
189 |
190 | extension Either.Or : Encodable where A : Encodable, B : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
191 | public func encode(to encoder: Encoder) throws {
192 | // we differ from the default Encodable behavior of enums in that we encode the underlying values directly, without referencing the case names
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:203:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
201 |
202 | extension Either : Decodable where A : Decodable {
203 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
204 | let container = try decoder.singleValueContainer()
205 | let element = try container.decode(A.self)
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:202:20: error: 'Decodable' is unavailable: unavailable in embedded Swift
200 |
201 |
202 | extension Either : Decodable where A : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
203 | public init(from decoder: Decoder) throws {
204 | let container = try decoder.singleValueContainer()
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:202:40: error: 'Decodable' is unavailable: unavailable in embedded Swift
200 |
201 |
202 | extension Either : Decodable where A : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
203 | public init(from decoder: Decoder) throws {
204 | let container = try decoder.singleValueContainer()
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:212:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
210 | extension Either.Or : Decodable where A : Decodable, B : Decodable {
211 | /// `Either.Or` implements decodable for brute-force trying to decode first `A` and then `B`
212 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
213 | do {
214 | self = try .a(.init(from: decoder))
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:210:23: error: 'Decodable' is unavailable: unavailable in embedded Swift
208 | }
209 |
210 | extension Either.Or : Decodable where A : Decodable, B : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
211 | /// `Either.Or` implements decodable for brute-force trying to decode first `A` and then `B`
212 | public init(from decoder: Decoder) throws {
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:210:43: error: 'Decodable' is unavailable: unavailable in embedded Swift
208 | }
209 |
210 | extension Either.Or : Decodable where A : Decodable, B : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
211 | /// `Either.Or` implements decodable for brute-force trying to decode first `A` and then `B`
212 | public init(from decoder: Decoder) throws {
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:210:58: error: 'Decodable' is unavailable: unavailable in embedded Swift
208 | }
209 |
210 | extension Either.Or : Decodable where A : Decodable, B : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
211 | /// `Either.Or` implements decodable for brute-force trying to decode first `A` and then `B`
212 | public init(from decoder: Decoder) throws {
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:319:1: warning: extension declares a conformance of imported type 'Never' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
317 |
318 | /// Useful extension for when a `OneOfX<A, B, …, Never>` wants to be treated as `Codable`
319 | extension Never : Decodable {
| |- warning: extension declares a conformance of imported type 'Never' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
320 | /// Throws an error, since it should never be decodable
321 | public init(from decoder: Decoder) throws {
/host/spi-builder-workspace/Sources/Either/Either.swift:321:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
319 | extension Never : Decodable {
320 | /// Throws an error, since it should never be decodable
321 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
322 | throw NeverCodableError.decodableNever
323 | }
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:319:19: error: 'Decodable' is unavailable: unavailable in embedded Swift
317 |
318 | /// Useful extension for when a `OneOfX<A, B, …, Never>` wants to be treated as `Codable`
319 | extension Never : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
320 | /// Throws an error, since it should never be decodable
321 | public init(from decoder: Decoder) throws {
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:327:1: warning: extension declares a conformance of imported type 'Never' to imported protocol 'Encodable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
325 |
326 | /// Useful extension for when a `OneOfX<A, B, …, Never>` wants to be treated as `Codable`
327 | extension Never : Encodable {
| |- warning: extension declares a conformance of imported type 'Never' to imported protocol 'Encodable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
328 | /// Throws an error, since it should never be encodable
329 | public func encode(to encoder: Encoder) throws {
/host/spi-builder-workspace/Sources/Either/Either.swift:329:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
327 | extension Never : Encodable {
328 | /// Throws an error, since it should never be encodable
329 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
330 | throw NeverCodableError.encodableNever
331 | }
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:327:19: error: 'Encodable' is unavailable: unavailable in embedded Swift
325 |
326 | /// Useful extension for when a `OneOfX<A, B, …, Never>` wants to be treated as `Codable`
327 | extension Never : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
328 | /// Throws an error, since it should never be encodable
329 | public func encode(to encoder: Encoder) throws {
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:384:47: error: 'Encoder' is unavailable: unavailable in embedded Swift
382 | // https://github.com/apple/swift/blob/325a63a1bd59eb2b12ba310ffa93e83d1336885f/stdlib/public/core/Codable.swift.gyb#L1825
383 | extension Indirect : Encodable where Wrapped : Encodable {
384 | @inlinable public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
385 | var container = encoder.singleValueContainer()
386 | try container.encode(self.rawValue)
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:383:22: error: 'Encodable' is unavailable: unavailable in embedded Swift
381 | // similar to Optional codability at:
382 | // https://github.com/apple/swift/blob/325a63a1bd59eb2b12ba310ffa93e83d1336885f/stdlib/public/core/Codable.swift.gyb#L1825
383 | extension Indirect : Encodable where Wrapped : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
384 | @inlinable public func encode(to encoder: Encoder) throws {
385 | var container = encoder.singleValueContainer()
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:383:48: error: 'Encodable' is unavailable: unavailable in embedded Swift
381 | // similar to Optional codability at:
382 | // https://github.com/apple/swift/blob/325a63a1bd59eb2b12ba310ffa93e83d1336885f/stdlib/public/core/Codable.swift.gyb#L1825
383 | extension Indirect : Encodable where Wrapped : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
384 | @inlinable public func encode(to encoder: Encoder) throws {
385 | var container = encoder.singleValueContainer()
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:394:42: error: 'Decoder' is unavailable: unavailable in embedded Swift
392 | // FIXME: doesn't work when nested
393 | extension Indirect : Decodable where Wrapped : Decodable {
394 | @inlinable public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
395 | let container = try decoder.singleValueContainer()
396 | let element = try container.decode(Wrapped.self)
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:393:22: error: 'Decodable' is unavailable: unavailable in embedded Swift
391 | // https://github.com/apple/swift/blob/325a63a1bd59eb2b12ba310ffa93e83d1336885f/stdlib/public/core/Codable.swift.gyb#L1842
392 | // FIXME: doesn't work when nested
393 | extension Indirect : Decodable where Wrapped : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
394 | @inlinable public init(from decoder: Decoder) throws {
395 | let container = try decoder.singleValueContainer()
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:393:48: error: 'Decodable' is unavailable: unavailable in embedded Swift
391 | // https://github.com/apple/swift/blob/325a63a1bd59eb2b12ba310ffa93e83d1336885f/stdlib/public/core/Codable.swift.gyb#L1842
392 | // FIXME: doesn't work when nested
393 | extension Indirect : Decodable where Wrapped : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
394 | @inlinable public init(from decoder: Decoder) throws {
395 | let container = try decoder.singleValueContainer()
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:419:35: error: 'Codable' is unavailable: unavailable in embedded Swift
417 | /// Codable implementation does not automatically use the underlying type (like
418 | /// it does with primitives and Strings)
419 | public protocol Alias : Isomorph, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
420 | }
421 |
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Either/Either.swift:565:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
563 | extension Dictionary.ValueContainer : Encodable where Value : Encodable, Key : Encodable {
564 | /// `ValueContainer` serializes to the underlying type's encoding with any intermediate wrapper
565 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
566 | try rawValue.encode(to: encoder)
567 | }
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:563:39: error: 'Encodable' is unavailable: unavailable in embedded Swift
561 | extension Dictionary.ValueContainer : Hashable where Value : Hashable { }
562 |
563 | extension Dictionary.ValueContainer : Encodable where Value : Encodable, Key : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
564 | /// `ValueContainer` serializes to the underlying type's encoding with any intermediate wrapper
565 | public func encode(to encoder: Encoder) throws {
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:563:63: error: 'Encodable' is unavailable: unavailable in embedded Swift
561 | extension Dictionary.ValueContainer : Hashable where Value : Hashable { }
562 |
563 | extension Dictionary.ValueContainer : Encodable where Value : Encodable, Key : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
564 | /// `ValueContainer` serializes to the underlying type's encoding with any intermediate wrapper
565 | public func encode(to encoder: Encoder) throws {
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:563:80: error: 'Encodable' is unavailable: unavailable in embedded Swift
561 | extension Dictionary.ValueContainer : Hashable where Value : Hashable { }
562 |
563 | extension Dictionary.ValueContainer : Encodable where Value : Encodable, Key : Encodable {
| `- error: 'Encodable' is unavailable: unavailable in embedded Swift
564 | /// `ValueContainer` serializes to the underlying type's encoding with any intermediate wrapper
565 | public func encode(to encoder: Encoder) throws {
Swift.Encodable:2:17: note: 'Encodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encodable {
| `- note: 'Encodable' has been explicitly marked unavailable here
3 | func encode(to encoder: any Encoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:570:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
568 | }
569 | extension Dictionary.ValueContainer : Decodable where Value : Decodable, Key : Decodable {
570 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
571 | try self.init(rawValue: RawValue(from: decoder))
572 | }
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/Sources/Either/Either.swift:569:39: error: 'Decodable' is unavailable: unavailable in embedded Swift
567 | }
568 | }
569 | extension Dictionary.ValueContainer : Decodable where Value : Decodable, Key : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
570 | public init(from decoder: Decoder) throws {
571 | try self.init(rawValue: RawValue(from: decoder))
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:569:63: error: 'Decodable' is unavailable: unavailable in embedded Swift
567 | }
568 | }
569 | extension Dictionary.ValueContainer : Decodable where Value : Decodable, Key : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
570 | public init(from decoder: Decoder) throws {
571 | try self.init(rawValue: RawValue(from: decoder))
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:569:80: error: 'Decodable' is unavailable: unavailable in embedded Swift
567 | }
568 | }
569 | extension Dictionary.ValueContainer : Decodable where Value : Decodable, Key : Decodable {
| `- error: 'Decodable' is unavailable: unavailable in embedded Swift
570 | public init(from decoder: Decoder) throws {
571 | try self.init(rawValue: RawValue(from: decoder))
Swift.Decodable:2:17: note: 'Decodable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decodable {
| `- note: 'Decodable' has been explicitly marked unavailable here
3 | init(from decoder: any Decoder) throws
4 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:186:23: error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
184 | public func encode(to encoder: Encoder) throws {
185 | var container = encoder.singleValueContainer()
186 | try container.encode(self.rawValue)
| `- error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
187 | }
188 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:195:39: error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
193 | var container = encoder.singleValueContainer()
194 | switch self {
195 | case .a(let x): try container.encode(x)
| `- error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
196 | case .b(let x): try container.encode(x)
197 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:196:39: error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
194 | switch self {
195 | case .a(let x): try container.encode(x)
196 | case .b(let x): try container.encode(x)
| `- error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
197 | }
198 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:205:37: error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
203 | public init(from decoder: Decoder) throws {
204 | let container = try decoder.singleValueContainer()
205 | let element = try container.decode(A.self)
| `- error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
206 | self.init(rawValue: element)
207 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:386:23: error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
384 | @inlinable public func encode(to encoder: Encoder) throws {
385 | var container = encoder.singleValueContainer()
386 | try container.encode(self.rawValue)
| `- error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
387 | }
388 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:396:37: error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
394 | @inlinable public init(from decoder: Decoder) throws {
395 | let container = try decoder.singleValueContainer()
396 | let element = try container.decode(Wrapped.self)
| `- error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
397 | self.init(element)
398 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:566:22: error: referencing instance method 'encode(to:)' on 'Either.Or' requires that '[Value]' conform to 'Encodable'
188 | }
189 |
190 | extension Either.Or : Encodable where A : Encodable, B : Encodable {
| `- note: where 'A' = '[Value]'
191 | public func encode(to encoder: Encoder) throws {
192 | // we differ from the default Encodable behavior of enums in that we encode the underlying values directly, without referencing the case names
:
564 | /// `ValueContainer` serializes to the underlying type's encoding with any intermediate wrapper
565 | public func encode(to encoder: Encoder) throws {
566 | try rawValue.encode(to: encoder)
| `- error: referencing instance method 'encode(to:)' on 'Either.Or' requires that '[Value]' conform to 'Encodable'
567 | }
568 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:566:22: error: referencing instance method 'encode(to:)' on 'Either.Or' requires that '[Key : Value]' conform to 'Encodable'
188 | }
189 |
190 | extension Either.Or : Encodable where A : Encodable, B : Encodable {
| `- note: where 'B' = '[Key : Value]'
191 | public func encode(to encoder: Encoder) throws {
192 | // we differ from the default Encodable behavior of enums in that we encode the underlying values directly, without referencing the case names
:
564 | /// `ValueContainer` serializes to the underlying type's encoding with any intermediate wrapper
565 | public func encode(to encoder: Encoder) throws {
566 | try rawValue.encode(to: encoder)
| `- error: referencing instance method 'encode(to:)' on 'Either.Or' requires that '[Key : Value]' conform to 'Encodable'
567 | }
568 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:571:33: error: referencing initializer 'init(from:)' on 'Either.Or' requires that '[Value]' conform to 'Decodable'
208 | }
209 |
210 | extension Either.Or : Decodable where A : Decodable, B : Decodable {
| `- note: where 'A' = '[Value]'
211 | /// `Either.Or` implements decodable for brute-force trying to decode first `A` and then `B`
212 | public init(from decoder: Decoder) throws {
:
569 | extension Dictionary.ValueContainer : Decodable where Value : Decodable, Key : Decodable {
570 | public init(from decoder: Decoder) throws {
571 | try self.init(rawValue: RawValue(from: decoder))
| `- error: referencing initializer 'init(from:)' on 'Either.Or' requires that '[Value]' conform to 'Decodable'
572 | }
573 | }
/host/spi-builder-workspace/Sources/Either/Either.swift:571:33: error: referencing initializer 'init(from:)' on 'Either.Or' requires that '[Key : Value]' conform to 'Decodable'
208 | }
209 |
210 | extension Either.Or : Decodable where A : Decodable, B : Decodable {
| `- note: where 'B' = '[Key : Value]'
211 | /// `Either.Or` implements decodable for brute-force trying to decode first `A` and then `B`
212 | public init(from decoder: Decoder) throws {
:
569 | extension Dictionary.ValueContainer : Decodable where Value : Decodable, Key : Decodable {
570 | public init(from decoder: Decoder) throws {
571 | try self.init(rawValue: RawValue(from: decoder))
| `- error: referencing initializer 'init(from:)' on 'Either.Or' requires that '[Key : Value]' conform to 'Decodable'
572 | }
573 | }
BUILD FAILURE 6.2 wasm