Build Information
Failed to build SwiftGraph, reference master (19101a), with Swift 6.2 for Wasm on 28 Oct 2025 16:31:32 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/davecom/SwiftGraph.git
Reference: master
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/davecom/SwiftGraph
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 19101a3 Merge pull request #92 from automaciej/master
Cloned https://github.com/davecom/SwiftGraph.git
Revision (git rev-parse @):
19101a3f8cd26fe17c985f14d97f2c124e64e983
SUCCESS checkout https://github.com/davecom/SwiftGraph.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/davecom/SwiftGraph.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module SwiftGraph
/host/spi-builder-workspace/Sources/SwiftGraph/Constructors.swift:21:38: error: 'Codable' is unavailable: unavailable in embedded Swift
19 | /// A type used to construct an UnweightedGraph with vertices of type V that is isomorphic to a star graph.
20 | /// https://en.wikipedia.org/wiki/Star_(graph_theory)
21 | public enum StarGraph<V: Equatable & Codable> {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
22 |
23 | /// Constructs an undirected UnweightedGraph isomorphic to a star graph.
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/SwiftGraph/Constructors.swift:44:42: error: 'Codable' is unavailable: unavailable in embedded Swift
42 | /// A type used to construct UnweightedGraph with vertices of type V that is isomorphic to a complete graph.
43 | /// https://en.wikipedia.org/wiki/Complete_graph
44 | public enum CompleteGraph<V: Equatable & Codable> {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
45 |
46 | /// Constructs an undirected UnweightedGraph isomorphic to a complete graph.
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/SwiftGraph/UnweightedGraph.swift:20:12: error: type 'UnweightedGraph' does not conform to protocol 'Decodable'
18 |
19 | /// An implementation of Graph with some convenience methods for adding and removing UnweightedEdges. WeightedEdges may be added to an UnweightedGraph but their weights will be ignored.
20 | open class UnweightedGraph<V: Equatable & Codable>: Graph {
| `- error: type 'UnweightedGraph' does not conform to protocol 'Decodable'
21 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Decodable' because '[V]' does not conform to 'Decodable'
22 | public var edges: [[UnweightedEdge]] = [[UnweightedEdge]]() //adjacency lists
| `- note: cannot automatically synthesize 'Decodable' because '[[UnweightedEdge]]' does not conform to 'Decodable'
23 |
24 | public init() {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UnweightedGraph.swift:20:12: error: type 'UnweightedGraph' does not conform to protocol 'Decodable'
18 |
19 | /// An implementation of Graph with some convenience methods for adding and removing UnweightedEdges. WeightedEdges may be added to an UnweightedGraph but their weights will be ignored.
20 | open class UnweightedGraph<V: Equatable & Codable>: Graph {
| `- error: type 'UnweightedGraph' does not conform to protocol 'Decodable'
21 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Decodable' because '[V]' does not conform to 'Decodable'
22 | public var edges: [[UnweightedEdge]] = [[UnweightedEdge]]() //adjacency lists
| `- note: cannot automatically synthesize 'Decodable' because '[[UnweightedEdge]]' does not conform to 'Decodable'
23 |
24 | public init() {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/Edge.swift:20:49: error: 'Codable' is unavailable: unavailable in embedded Swift
18 |
19 | /// A protocol that all edges in a graph must conform to.
20 | public protocol Edge: CustomStringConvertible & Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
21 | /// The origin vertex of the edge
22 | var u: Int {get set} //made modifiable for changing when removing vertices
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/SwiftGraph/Graph.swift:23:35: error: 'Codable' is unavailable: unavailable in embedded Swift
21 | /// *UnweightedGraph* and *WeightedGraph*
22 | public protocol Graph: CustomStringConvertible, Collection, Codable {
23 | associatedtype V: Equatable & Codable
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
24 | associatedtype E: Edge & Equatable
25 | var vertices: [V] { get set }
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/SwiftGraph/Graph.swift:22:61: error: 'Codable' is unavailable: unavailable in embedded Swift
20 | /// You should generally use one of its two canonical class implementations,
21 | /// *UnweightedGraph* and *WeightedGraph*
22 | public protocol Graph: CustomStringConvertible, Collection, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
23 | associatedtype V: Equatable & Codable
24 | associatedtype E: Edge & Equatable
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/SwiftGraph/Search.swift:547:20: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
541 | /// Represents a node in the priority queue used
542 | /// for selecting the next
543 | struct DijkstraNode<D: Comparable>: Comparable, Equatable {
| `- note: 'D' previously declared here
544 | let vertex: Int
545 | let distance: D
546 |
547 | static func < <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
| `- warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
548 | return lhs.distance < rhs.distance
549 | }
/host/spi-builder-workspace/Sources/SwiftGraph/Search.swift:551:21: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
541 | /// Represents a node in the priority queue used
542 | /// for selecting the next
543 | struct DijkstraNode<D: Comparable>: Comparable, Equatable {
| `- note: 'D' previously declared here
544 | let vertex: Int
545 | let distance: D
:
549 | }
550 |
551 | static func == <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
| `- warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
552 | return lhs.distance == rhs.distance
553 | }
/host/spi-builder-workspace/Sources/SwiftGraph/SwiftPriorityQueue.swift:183:50: error: 'description' is unavailable: unavailable in embedded Swift
181 | extension PriorityQueue: CustomStringConvertible, CustomDebugStringConvertible {
182 |
183 | public var description: String { return heap.description }
| `- error: 'description' is unavailable: unavailable in embedded Swift
184 | public var debugDescription: String { return heap.debugDescription }
185 | }
Swift.Array.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Array {
2 | public var description: String { get }}
| `- note: 'description' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/SwiftPriorityQueue.swift:184:55: error: 'debugDescription' is unavailable: unavailable in embedded Swift
182 |
183 | public var description: String { return heap.description }
184 | public var debugDescription: String { return heap.debugDescription }
| `- error: 'debugDescription' is unavailable: unavailable in embedded Swift
185 | }
186 |
Swift.Array.debugDescription:2:12: note: 'debugDescription' has been explicitly marked unavailable here
1 | generic struct Array {
2 | public var debugDescription: String { get }}
| `- note: 'debugDescription' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:23:12: error: type 'UniqueElementsGraph' does not conform to protocol 'Decodable'
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
| `- error: type 'UniqueElementsGraph' does not conform to protocol 'Decodable'
24 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Decodable' because '[V]' does not conform to 'Decodable'
25 | public var edges: [[E]] = [[E]]() //adjacency lists
| `- note: cannot automatically synthesize 'Decodable' because '[[E]]' does not conform to 'Decodable'
26 |
27 | public init() {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:23:12: error: type 'UniqueElementsGraph' does not conform to protocol 'Decodable'
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
| `- error: type 'UniqueElementsGraph' does not conform to protocol 'Decodable'
24 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Decodable' because '[V]' does not conform to 'Decodable'
25 | public var edges: [[E]] = [[E]]() //adjacency lists
| `- note: cannot automatically synthesize 'Decodable' because '[[E]]' does not conform to 'Decodable'
26 |
27 | public init() {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:19:63: error: 'Codable' is unavailable: unavailable in embedded Swift
17 | // limitations under the License.
18 |
19 | public typealias UnweightedUniqueElementsGraph<V: Equatable & Codable> = UniqueElementsGraph<V, UnweightedEdge>
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
20 | public typealias WeightedUniqueElementsGraph<V: Equatable & Codable, W: Equatable & Codable> = UniqueElementsGraph<V, WeightedEdge<W>>
21 |
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/SwiftGraph/UniqueElementsGraph.swift:20:61: error: 'Codable' is unavailable: unavailable in embedded Swift
18 |
19 | public typealias UnweightedUniqueElementsGraph<V: Equatable & Codable> = UniqueElementsGraph<V, UnweightedEdge>
20 | public typealias WeightedUniqueElementsGraph<V: Equatable & Codable, W: Equatable & Codable> = UniqueElementsGraph<V, WeightedEdge<W>>
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
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/SwiftGraph/UniqueElementsGraph.swift:20:85: error: 'Codable' is unavailable: unavailable in embedded Swift
18 |
19 | public typealias UnweightedUniqueElementsGraph<V: Equatable & Codable> = UniqueElementsGraph<V, UnweightedEdge>
20 | public typealias WeightedUniqueElementsGraph<V: Equatable & Codable, W: Equatable & Codable> = UniqueElementsGraph<V, WeightedEdge<W>>
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
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/SwiftGraph/UniqueElementsGraph.swift:23:12: error: type 'UniqueElementsGraph' does not conform to protocol 'Encodable'
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
| `- error: type 'UniqueElementsGraph' does not conform to protocol 'Encodable'
24 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Encodable' because '[V]' does not conform to 'Encodable'
25 | public var edges: [[E]] = [[E]]() //adjacency lists
| `- note: cannot automatically synthesize 'Encodable' because '[[E]]' does not conform to 'Encodable'
26 |
27 | public init() {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:23:47: error: 'Codable' is unavailable: unavailable in embedded Swift
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
24 | public var vertices: [V] = [V]()
25 | public var edges: [[E]] = [[E]]() //adjacency lists
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/SwiftGraph/UniqueElementsGraph.swift:132:33: warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
| `- note: 'V' previously declared here
24 | public var vertices: [V] = [V]()
25 | public var edges: [[E]] = [[E]]() //adjacency lists
:
130 | }
131 |
132 | private struct QueueElement<V> {
| `- warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
133 | let v: V
134 | let previousIndex: Int
/host/spi-builder-workspace/Sources/SwiftGraph/UnweightedEdge.swift:20:15: error: type 'UnweightedEdge' does not conform to protocol 'Decodable'
18 |
19 | /// A basic unweighted edge.
20 | public struct UnweightedEdge: Edge, CustomStringConvertible, Equatable {
| `- error: type 'UnweightedEdge' does not conform to protocol 'Decodable'
21 | public var u: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
22 | public var v: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
23 | public var directed: Bool
| `- note: cannot automatically synthesize 'Decodable' because 'Bool' does not conform to 'Decodable'
24 |
25 | public init(u: Int, v: Int, directed: Bool) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UnweightedEdge.swift:20:15: error: type 'UnweightedEdge' does not conform to protocol 'Encodable'
18 |
19 | /// A basic unweighted edge.
20 | public struct UnweightedEdge: Edge, CustomStringConvertible, Equatable {
| `- error: type 'UnweightedEdge' does not conform to protocol 'Encodable'
21 | public var u: Int
| `- note: cannot automatically synthesize 'Encodable' because 'Int' does not conform to 'Encodable'
22 | public var v: Int
| `- note: cannot automatically synthesize 'Encodable' because 'Int' does not conform to 'Encodable'
23 | public var directed: Bool
| `- note: cannot automatically synthesize 'Encodable' because 'Bool' does not conform to 'Encodable'
24 |
25 | public init(u: Int, v: Int, directed: Bool) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UnweightedEdge.swift:20:15: error: type 'UnweightedEdge' does not conform to protocol 'Decodable'
18 |
19 | /// A basic unweighted edge.
20 | public struct UnweightedEdge: Edge, CustomStringConvertible, Equatable {
| `- error: type 'UnweightedEdge' does not conform to protocol 'Decodable'
21 | public var u: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
22 | public var v: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
23 | public var directed: Bool
| `- note: cannot automatically synthesize 'Decodable' because 'Bool' does not conform to 'Decodable'
24 |
25 | public init(u: Int, v: Int, directed: Bool) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UnweightedGraph.swift:20:12: error: type 'UnweightedGraph' does not conform to protocol 'Encodable'
18 |
19 | /// An implementation of Graph with some convenience methods for adding and removing UnweightedEdges. WeightedEdges may be added to an UnweightedGraph but their weights will be ignored.
20 | open class UnweightedGraph<V: Equatable & Codable>: Graph {
| `- error: type 'UnweightedGraph' does not conform to protocol 'Encodable'
21 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Encodable' because '[V]' does not conform to 'Encodable'
22 | public var edges: [[UnweightedEdge]] = [[UnweightedEdge]]() //adjacency lists
| `- note: cannot automatically synthesize 'Encodable' because '[[UnweightedEdge]]' does not conform to 'Encodable'
23 |
24 | public init() {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UnweightedGraph.swift:20:43: error: 'Codable' is unavailable: unavailable in embedded Swift
18 |
19 | /// An implementation of Graph with some convenience methods for adding and removing UnweightedEdges. WeightedEdges may be added to an UnweightedGraph but their weights will be ignored.
20 | open class UnweightedGraph<V: Equatable & Codable>: Graph {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
21 | public var vertices: [V] = [V]()
22 | public var edges: [[UnweightedEdge]] = [[UnweightedEdge]]() //adjacency lists
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/SwiftGraph/WeightedEdge.swift:32:15: error: type 'WeightedEdge' does not conform to protocol 'Decodable'
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
| `- error: type 'WeightedEdge' does not conform to protocol 'Decodable'
33 | public var u: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
34 | public var v: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
35 | public var directed: Bool
| `- note: cannot automatically synthesize 'Decodable' because 'Bool' does not conform to 'Decodable'
36 | public var weight: W
37 |
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift:55:28: warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
| `- note: 'W' previously declared here
33 | public var u: Int
34 | public var v: Int
:
53 |
54 | //MARK: Operator Overloads
55 | static public func == <W>(lhs: WeightedEdge<W>, rhs: WeightedEdge<W>) -> Bool {
| `- warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
56 | return lhs.u == rhs.u && lhs.v == rhs.v && lhs.weight == rhs.weight
57 | }
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift:32:43: error: 'Codable' is unavailable: unavailable in embedded Swift
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
33 | public var u: Int
34 | public var v: Int
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/SwiftGraph/WeightedEdge.swift:32:15: error: type 'WeightedEdge' does not conform to protocol 'Encodable'
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
| `- error: type 'WeightedEdge' does not conform to protocol 'Encodable'
33 | public var u: Int
| `- note: cannot automatically synthesize 'Encodable' because 'Int' does not conform to 'Encodable'
34 | public var v: Int
| `- note: cannot automatically synthesize 'Encodable' because 'Int' does not conform to 'Encodable'
35 | public var directed: Bool
| `- note: cannot automatically synthesize 'Encodable' because 'Bool' does not conform to 'Encodable'
36 | public var weight: W
37 |
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift:32:15: error: type 'WeightedEdge' does not conform to protocol 'Decodable'
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
| `- error: type 'WeightedEdge' does not conform to protocol 'Decodable'
33 | public var u: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
34 | public var v: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
35 | public var directed: Bool
| `- note: cannot automatically synthesize 'Decodable' because 'Bool' does not conform to 'Decodable'
36 | public var weight: W
37 |
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedGraph.swift:20:12: error: type 'WeightedGraph' does not conform to protocol 'Decodable'
18 |
19 | /// An implementation of Graph that has convenience methods for adding and removing WeightedEdges. All added Edges should have the same generic Comparable type W as the WeightedGraph itself.
20 | open class WeightedGraph<V: Equatable & Codable, W: Equatable & Codable>: Graph {
| `- error: type 'WeightedGraph' does not conform to protocol 'Decodable'
21 |
22 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Decodable' because '[V]' does not conform to 'Decodable'
23 | public var edges: [[WeightedEdge<W>]] = [[WeightedEdge<W>]]() //adjacency lists
| `- note: cannot automatically synthesize 'Decodable' because '[[WeightedEdge<W>]]' does not conform to 'Decodable'
24 |
25 | public init() {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedGraph.swift:20:12: error: type 'WeightedGraph' does not conform to protocol 'Encodable'
18 |
19 | /// An implementation of Graph that has convenience methods for adding and removing WeightedEdges. All added Edges should have the same generic Comparable type W as the WeightedGraph itself.
20 | open class WeightedGraph<V: Equatable & Codable, W: Equatable & Codable>: Graph {
| `- error: type 'WeightedGraph' does not conform to protocol 'Encodable'
21 |
22 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Encodable' because '[V]' does not conform to 'Encodable'
23 | public var edges: [[WeightedEdge<W>]] = [[WeightedEdge<W>]]() //adjacency lists
| `- note: cannot automatically synthesize 'Encodable' because '[[WeightedEdge<W>]]' does not conform to 'Encodable'
24 |
25 | public init() {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedGraph.swift:20:41: error: 'Codable' is unavailable: unavailable in embedded Swift
18 |
19 | /// An implementation of Graph that has convenience methods for adding and removing WeightedEdges. All added Edges should have the same generic Comparable type W as the WeightedGraph itself.
20 | open class WeightedGraph<V: Equatable & Codable, W: Equatable & Codable>: Graph {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
21 |
22 | public var vertices: [V] = [V]()
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/SwiftGraph/WeightedGraph.swift:20:65: error: 'Codable' is unavailable: unavailable in embedded Swift
18 |
19 | /// An implementation of Graph that has convenience methods for adding and removing WeightedEdges. All added Edges should have the same generic Comparable type W as the WeightedGraph itself.
20 | open class WeightedGraph<V: Equatable & Codable, W: Equatable & Codable>: Graph {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
21 |
22 | public var vertices: [V] = [V]()
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
[4/4] Compiling SwiftGraph Constructors.swift
/host/spi-builder-workspace/Sources/SwiftGraph/Constructors.swift:21:38: error: 'Codable' is unavailable: unavailable in embedded Swift
19 | /// A type used to construct an UnweightedGraph with vertices of type V that is isomorphic to a star graph.
20 | /// https://en.wikipedia.org/wiki/Star_(graph_theory)
21 | public enum StarGraph<V: Equatable & Codable> {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
22 |
23 | /// Constructs an undirected UnweightedGraph isomorphic to a star graph.
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/SwiftGraph/Constructors.swift:44:42: error: 'Codable' is unavailable: unavailable in embedded Swift
42 | /// A type used to construct UnweightedGraph with vertices of type V that is isomorphic to a complete graph.
43 | /// https://en.wikipedia.org/wiki/Complete_graph
44 | public enum CompleteGraph<V: Equatable & Codable> {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
45 |
46 | /// Constructs an undirected UnweightedGraph isomorphic to a complete graph.
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/SwiftGraph/UnweightedGraph.swift:20:12: error: type 'UnweightedGraph' does not conform to protocol 'Decodable'
18 |
19 | /// An implementation of Graph with some convenience methods for adding and removing UnweightedEdges. WeightedEdges may be added to an UnweightedGraph but their weights will be ignored.
20 | open class UnweightedGraph<V: Equatable & Codable>: Graph {
| `- error: type 'UnweightedGraph' does not conform to protocol 'Decodable'
21 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Decodable' because '[V]' does not conform to 'Decodable'
22 | public var edges: [[UnweightedEdge]] = [[UnweightedEdge]]() //adjacency lists
| `- note: cannot automatically synthesize 'Decodable' because '[[UnweightedEdge]]' does not conform to 'Decodable'
23 |
24 | public init() {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UnweightedGraph.swift:20:12: error: type 'UnweightedGraph' does not conform to protocol 'Decodable'
18 |
19 | /// An implementation of Graph with some convenience methods for adding and removing UnweightedEdges. WeightedEdges may be added to an UnweightedGraph but their weights will be ignored.
20 | open class UnweightedGraph<V: Equatable & Codable>: Graph {
| `- error: type 'UnweightedGraph' does not conform to protocol 'Decodable'
21 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Decodable' because '[V]' does not conform to 'Decodable'
22 | public var edges: [[UnweightedEdge]] = [[UnweightedEdge]]() //adjacency lists
| `- note: cannot automatically synthesize 'Decodable' because '[[UnweightedEdge]]' does not conform to 'Decodable'
23 |
24 | public init() {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/Edge.swift:20:49: error: 'Codable' is unavailable: unavailable in embedded Swift
18 |
19 | /// A protocol that all edges in a graph must conform to.
20 | public protocol Edge: CustomStringConvertible & Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
21 | /// The origin vertex of the edge
22 | var u: Int {get set} //made modifiable for changing when removing vertices
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/SwiftGraph/Graph.swift:23:35: error: 'Codable' is unavailable: unavailable in embedded Swift
21 | /// *UnweightedGraph* and *WeightedGraph*
22 | public protocol Graph: CustomStringConvertible, Collection, Codable {
23 | associatedtype V: Equatable & Codable
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
24 | associatedtype E: Edge & Equatable
25 | var vertices: [V] { get set }
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/SwiftGraph/Graph.swift:22:61: error: 'Codable' is unavailable: unavailable in embedded Swift
20 | /// You should generally use one of its two canonical class implementations,
21 | /// *UnweightedGraph* and *WeightedGraph*
22 | public protocol Graph: CustomStringConvertible, Collection, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
23 | associatedtype V: Equatable & Codable
24 | associatedtype E: Edge & Equatable
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/SwiftGraph/Search.swift:547:20: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
541 | /// Represents a node in the priority queue used
542 | /// for selecting the next
543 | struct DijkstraNode<D: Comparable>: Comparable, Equatable {
| `- note: 'D' previously declared here
544 | let vertex: Int
545 | let distance: D
546 |
547 | static func < <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
| `- warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
548 | return lhs.distance < rhs.distance
549 | }
/host/spi-builder-workspace/Sources/SwiftGraph/Search.swift:551:21: warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
541 | /// Represents a node in the priority queue used
542 | /// for selecting the next
543 | struct DijkstraNode<D: Comparable>: Comparable, Equatable {
| `- note: 'D' previously declared here
544 | let vertex: Int
545 | let distance: D
:
549 | }
550 |
551 | static func == <D>(lhs: DijkstraNode<D>, rhs: DijkstraNode<D>) -> Bool {
| `- warning: generic parameter 'D' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
552 | return lhs.distance == rhs.distance
553 | }
/host/spi-builder-workspace/Sources/SwiftGraph/SwiftPriorityQueue.swift:183:50: error: 'description' is unavailable: unavailable in embedded Swift
181 | extension PriorityQueue: CustomStringConvertible, CustomDebugStringConvertible {
182 |
183 | public var description: String { return heap.description }
| `- error: 'description' is unavailable: unavailable in embedded Swift
184 | public var debugDescription: String { return heap.debugDescription }
185 | }
Swift.Array.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Array {
2 | public var description: String { get }}
| `- note: 'description' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/SwiftPriorityQueue.swift:184:55: error: 'debugDescription' is unavailable: unavailable in embedded Swift
182 |
183 | public var description: String { return heap.description }
184 | public var debugDescription: String { return heap.debugDescription }
| `- error: 'debugDescription' is unavailable: unavailable in embedded Swift
185 | }
186 |
Swift.Array.debugDescription:2:12: note: 'debugDescription' has been explicitly marked unavailable here
1 | generic struct Array {
2 | public var debugDescription: String { get }}
| `- note: 'debugDescription' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:23:12: error: type 'UniqueElementsGraph' does not conform to protocol 'Decodable'
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
| `- error: type 'UniqueElementsGraph' does not conform to protocol 'Decodable'
24 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Decodable' because '[V]' does not conform to 'Decodable'
25 | public var edges: [[E]] = [[E]]() //adjacency lists
| `- note: cannot automatically synthesize 'Decodable' because '[[E]]' does not conform to 'Decodable'
26 |
27 | public init() {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:23:12: error: type 'UniqueElementsGraph' does not conform to protocol 'Decodable'
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
| `- error: type 'UniqueElementsGraph' does not conform to protocol 'Decodable'
24 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Decodable' because '[V]' does not conform to 'Decodable'
25 | public var edges: [[E]] = [[E]]() //adjacency lists
| `- note: cannot automatically synthesize 'Decodable' because '[[E]]' does not conform to 'Decodable'
26 |
27 | public init() {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:19:63: error: 'Codable' is unavailable: unavailable in embedded Swift
17 | // limitations under the License.
18 |
19 | public typealias UnweightedUniqueElementsGraph<V: Equatable & Codable> = UniqueElementsGraph<V, UnweightedEdge>
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
20 | public typealias WeightedUniqueElementsGraph<V: Equatable & Codable, W: Equatable & Codable> = UniqueElementsGraph<V, WeightedEdge<W>>
21 |
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/SwiftGraph/UniqueElementsGraph.swift:20:61: error: 'Codable' is unavailable: unavailable in embedded Swift
18 |
19 | public typealias UnweightedUniqueElementsGraph<V: Equatable & Codable> = UniqueElementsGraph<V, UnweightedEdge>
20 | public typealias WeightedUniqueElementsGraph<V: Equatable & Codable, W: Equatable & Codable> = UniqueElementsGraph<V, WeightedEdge<W>>
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
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/SwiftGraph/UniqueElementsGraph.swift:20:85: error: 'Codable' is unavailable: unavailable in embedded Swift
18 |
19 | public typealias UnweightedUniqueElementsGraph<V: Equatable & Codable> = UniqueElementsGraph<V, UnweightedEdge>
20 | public typealias WeightedUniqueElementsGraph<V: Equatable & Codable, W: Equatable & Codable> = UniqueElementsGraph<V, WeightedEdge<W>>
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
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/SwiftGraph/UniqueElementsGraph.swift:23:12: error: type 'UniqueElementsGraph' does not conform to protocol 'Encodable'
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
| `- error: type 'UniqueElementsGraph' does not conform to protocol 'Encodable'
24 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Encodable' because '[V]' does not conform to 'Encodable'
25 | public var edges: [[E]] = [[E]]() //adjacency lists
| `- note: cannot automatically synthesize 'Encodable' because '[[E]]' does not conform to 'Encodable'
26 |
27 | public init() {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UniqueElementsGraph.swift:23:47: error: 'Codable' is unavailable: unavailable in embedded Swift
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
24 | public var vertices: [V] = [V]()
25 | public var edges: [[E]] = [[E]]() //adjacency lists
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/SwiftGraph/UniqueElementsGraph.swift:132:33: warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
21 |
22 | /// An implementation Graph that ensures there are no pairs of equal vertices and no repeated edges.
23 | open class UniqueElementsGraph<V: Equatable & Codable, E: Edge & Equatable>: Graph {
| `- note: 'V' previously declared here
24 | public var vertices: [V] = [V]()
25 | public var edges: [[E]] = [[E]]() //adjacency lists
:
130 | }
131 |
132 | private struct QueueElement<V> {
| `- warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
133 | let v: V
134 | let previousIndex: Int
/host/spi-builder-workspace/Sources/SwiftGraph/UnweightedEdge.swift:20:15: error: type 'UnweightedEdge' does not conform to protocol 'Decodable'
18 |
19 | /// A basic unweighted edge.
20 | public struct UnweightedEdge: Edge, CustomStringConvertible, Equatable {
| `- error: type 'UnweightedEdge' does not conform to protocol 'Decodable'
21 | public var u: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
22 | public var v: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
23 | public var directed: Bool
| `- note: cannot automatically synthesize 'Decodable' because 'Bool' does not conform to 'Decodable'
24 |
25 | public init(u: Int, v: Int, directed: Bool) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UnweightedEdge.swift:20:15: error: type 'UnweightedEdge' does not conform to protocol 'Encodable'
18 |
19 | /// A basic unweighted edge.
20 | public struct UnweightedEdge: Edge, CustomStringConvertible, Equatable {
| `- error: type 'UnweightedEdge' does not conform to protocol 'Encodable'
21 | public var u: Int
| `- note: cannot automatically synthesize 'Encodable' because 'Int' does not conform to 'Encodable'
22 | public var v: Int
| `- note: cannot automatically synthesize 'Encodable' because 'Int' does not conform to 'Encodable'
23 | public var directed: Bool
| `- note: cannot automatically synthesize 'Encodable' because 'Bool' does not conform to 'Encodable'
24 |
25 | public init(u: Int, v: Int, directed: Bool) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UnweightedEdge.swift:20:15: error: type 'UnweightedEdge' does not conform to protocol 'Decodable'
18 |
19 | /// A basic unweighted edge.
20 | public struct UnweightedEdge: Edge, CustomStringConvertible, Equatable {
| `- error: type 'UnweightedEdge' does not conform to protocol 'Decodable'
21 | public var u: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
22 | public var v: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
23 | public var directed: Bool
| `- note: cannot automatically synthesize 'Decodable' because 'Bool' does not conform to 'Decodable'
24 |
25 | public init(u: Int, v: Int, directed: Bool) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UnweightedGraph.swift:20:12: error: type 'UnweightedGraph' does not conform to protocol 'Encodable'
18 |
19 | /// An implementation of Graph with some convenience methods for adding and removing UnweightedEdges. WeightedEdges may be added to an UnweightedGraph but their weights will be ignored.
20 | open class UnweightedGraph<V: Equatable & Codable>: Graph {
| `- error: type 'UnweightedGraph' does not conform to protocol 'Encodable'
21 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Encodable' because '[V]' does not conform to 'Encodable'
22 | public var edges: [[UnweightedEdge]] = [[UnweightedEdge]]() //adjacency lists
| `- note: cannot automatically synthesize 'Encodable' because '[[UnweightedEdge]]' does not conform to 'Encodable'
23 |
24 | public init() {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/UnweightedGraph.swift:20:43: error: 'Codable' is unavailable: unavailable in embedded Swift
18 |
19 | /// An implementation of Graph with some convenience methods for adding and removing UnweightedEdges. WeightedEdges may be added to an UnweightedGraph but their weights will be ignored.
20 | open class UnweightedGraph<V: Equatable & Codable>: Graph {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
21 | public var vertices: [V] = [V]()
22 | public var edges: [[UnweightedEdge]] = [[UnweightedEdge]]() //adjacency lists
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/SwiftGraph/WeightedEdge.swift:32:15: error: type 'WeightedEdge' does not conform to protocol 'Decodable'
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
| `- error: type 'WeightedEdge' does not conform to protocol 'Decodable'
33 | public var u: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
34 | public var v: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
35 | public var directed: Bool
| `- note: cannot automatically synthesize 'Decodable' because 'Bool' does not conform to 'Decodable'
36 | public var weight: W
37 |
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift:55:28: warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
| `- note: 'W' previously declared here
33 | public var u: Int
34 | public var v: Int
:
53 |
54 | //MARK: Operator Overloads
55 | static public func == <W>(lhs: WeightedEdge<W>, rhs: WeightedEdge<W>) -> Bool {
| `- warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
56 | return lhs.u == rhs.u && lhs.v == rhs.v && lhs.weight == rhs.weight
57 | }
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift:32:43: error: 'Codable' is unavailable: unavailable in embedded Swift
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
33 | public var u: Int
34 | public var v: Int
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/SwiftGraph/WeightedEdge.swift:32:15: error: type 'WeightedEdge' does not conform to protocol 'Encodable'
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
| `- error: type 'WeightedEdge' does not conform to protocol 'Encodable'
33 | public var u: Int
| `- note: cannot automatically synthesize 'Encodable' because 'Int' does not conform to 'Encodable'
34 | public var v: Int
| `- note: cannot automatically synthesize 'Encodable' because 'Int' does not conform to 'Encodable'
35 | public var directed: Bool
| `- note: cannot automatically synthesize 'Encodable' because 'Bool' does not conform to 'Encodable'
36 | public var weight: W
37 |
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedEdge.swift:32:15: error: type 'WeightedEdge' does not conform to protocol 'Decodable'
30 |
31 | /// A weighted edge, who's weight subscribes to Comparable.
32 | public struct WeightedEdge<W: Equatable & Codable>: Edge, CustomStringConvertible, Equatable {
| `- error: type 'WeightedEdge' does not conform to protocol 'Decodable'
33 | public var u: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
34 | public var v: Int
| `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
35 | public var directed: Bool
| `- note: cannot automatically synthesize 'Decodable' because 'Bool' does not conform to 'Decodable'
36 | public var weight: W
37 |
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedGraph.swift:20:12: error: type 'WeightedGraph' does not conform to protocol 'Decodable'
18 |
19 | /// An implementation of Graph that has convenience methods for adding and removing WeightedEdges. All added Edges should have the same generic Comparable type W as the WeightedGraph itself.
20 | open class WeightedGraph<V: Equatable & Codable, W: Equatable & Codable>: Graph {
| `- error: type 'WeightedGraph' does not conform to protocol 'Decodable'
21 |
22 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Decodable' because '[V]' does not conform to 'Decodable'
23 | public var edges: [[WeightedEdge<W>]] = [[WeightedEdge<W>]]() //adjacency lists
| `- note: cannot automatically synthesize 'Decodable' because '[[WeightedEdge<W>]]' does not conform to 'Decodable'
24 |
25 | public init() {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedGraph.swift:20:12: error: type 'WeightedGraph' does not conform to protocol 'Encodable'
18 |
19 | /// An implementation of Graph that has convenience methods for adding and removing WeightedEdges. All added Edges should have the same generic Comparable type W as the WeightedGraph itself.
20 | open class WeightedGraph<V: Equatable & Codable, W: Equatable & Codable>: Graph {
| `- error: type 'WeightedGraph' does not conform to protocol 'Encodable'
21 |
22 | public var vertices: [V] = [V]()
| `- note: cannot automatically synthesize 'Encodable' because '[V]' does not conform to 'Encodable'
23 | public var edges: [[WeightedEdge<W>]] = [[WeightedEdge<W>]]() //adjacency lists
| `- note: cannot automatically synthesize 'Encodable' because '[[WeightedEdge<W>]]' does not conform to 'Encodable'
24 |
25 | public init() {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/SwiftGraph/WeightedGraph.swift:20:41: error: 'Codable' is unavailable: unavailable in embedded Swift
18 |
19 | /// An implementation of Graph that has convenience methods for adding and removing WeightedEdges. All added Edges should have the same generic Comparable type W as the WeightedGraph itself.
20 | open class WeightedGraph<V: Equatable & Codable, W: Equatable & Codable>: Graph {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
21 |
22 | public var vertices: [V] = [V]()
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/SwiftGraph/WeightedGraph.swift:20:65: error: 'Codable' is unavailable: unavailable in embedded Swift
18 |
19 | /// An implementation of Graph that has convenience methods for adding and removing WeightedEdges. All added Edges should have the same generic Comparable type W as the WeightedGraph itself.
20 | open class WeightedGraph<V: Equatable & Codable, W: Equatable & Codable>: Graph {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
21 |
22 | public var vertices: [V] = [V]()
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
BUILD FAILURE 6.2 wasm