The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of smoldot-swift, reference v0.1.0 (8fe67e), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 08:43:58 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/finsig/smoldot-swift.git
Reference: v0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/finsig/smoldot-swift
 * tag               v0.1.0     -> FETCH_HEAD
HEAD is now at 8fe67ec Fix release tag
Cloned https://github.com/finsig/smoldot-swift.git
Revision (git rev-parse @):
8fe67ecb85514cc467854c761d71be5e573794eb
SUCCESS checkout https://github.com/finsig/smoldot-swift.git at v0.1.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/finsig/smoldot-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/10] Write sources
[1/10] Copying libsmoldot_c_ffi.a
[1/10] Copying rococo.json
[2/10] Write sources
[5/10] Copying westend.json
[5/10] Copying polkadot.json
[5/10] Copying kusama.json
[8/10] Write swift-version-117DEE11B69C53C9.txt
[9/10] Compiling CSmoldot bridge.c
[11/14] Compiling JSON Primitive.swift
[12/14] Compiling JSON JSON.swift
[13/14] Emitting module JSON
[14/14] Compiling JSON Object.swift
[15/24] Compiling JSONRPC2 RequestParameters.swift
[16/25] Compiling JSONRPC2 Notification.swift
[17/25] Compiling JSONRPC2 JSONRPCVersion.swift
[18/25] Compiling JSONRPC2 JSONRPC2Error.swift
[19/25] Compiling JSONRPC2 Identifier.swift
[20/25] Compiling JSONRPC2 Batch.swift
[21/25] Compiling JSONRPC2 Request.swift
[22/25] Compiling JSONRPC2 JSONRPC2.swift
[23/25] Compiling JSONRPC2 JSONRPC2ErrorCode.swift
[24/25] Emitting module JSONRPC2
[25/25] Compiling JSONRPC2 Response.swift
[26/35] Compiling SmoldotSwift ClientError.swift
[27/35] Compiling SmoldotSwift JSONObject.swift
[28/35] Compiling SmoldotSwift SmoldotSwift.swift
[29/35] Compiling SmoldotSwift JSONRPC2Request.swift
[30/35] Compiling SmoldotSwift resource_bundle_accessor.swift
[31/35] Emitting module SmoldotSwift
[32/35] Compiling SmoldotSwift Chain.swift
[33/35] Compiling SmoldotSwift Chain+Specification.swift
[34/35] Compiling SmoldotSwift Chain+Resources.swift
[35/35] Compiling SmoldotSwift Client.swift
/Users/admin/builder/spi-builder-workspace/Sources/SmoldotSwift/Client.swift:104:18: warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
102 |
103 |         AsyncThrowingStream<String,Error>(String.self, bufferingPolicy: bufferingPolicy, { continuation in
104 |             Task.detached {
    |                  `- warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
105 |                 while (true) {
106 |                     guard let id = chain.id else {
Build complete! (33.68s)
Fetching https://github.com/finsig/json-rpc2
[1/42] Fetching json-rpc2
Fetched https://github.com/finsig/json-rpc2 from cache (0.70s)
Computing version for https://github.com/finsig/json-rpc2
Computed https://github.com/finsig/json-rpc2 at 0.1.1 (3.33s)
Fetching https://github.com/finsig/json
[1/26] Fetching json
Fetched https://github.com/finsig/json from cache (0.67s)
Computing version for https://github.com/finsig/json
Computed https://github.com/finsig/json at 0.1.0 (0.62s)
Creating working copy for https://github.com/finsig/json
Working copy of https://github.com/finsig/json resolved at 0.1.0
Creating working copy for https://github.com/finsig/json-rpc2
Working copy of https://github.com/finsig/json-rpc2 resolved at 0.1.1
[13269/65790399] Downloading https://github.com/finsig/smoldot-swift/releases/download/v0.1.0/smoldot.xcframework.zip
Downloading binary artifact https://github.com/finsig/smoldot-swift/releases/download/v0.1.0/smoldot.xcframework.zip
Downloaded https://github.com/finsig/smoldot-swift/releases/download/v0.1.0/smoldot.xcframework.zip (4.29s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "json-rpc2",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/finsig/json-rpc2"
    }
  ],
  "manifest_display_name" : "smoldot-swift",
  "name" : "smoldot-swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SmoldotSwift",
      "targets" : [
        "SmoldotSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "smoldot",
      "module_type" : "BinaryTarget",
      "name" : "smoldot",
      "path" : "remote/archive/smoldot.xcframework.zip",
      "product_memberships" : [
        "SmoldotSwift"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "SmoldotSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "SmoldotSwiftTests",
      "path" : "Tests/SmoldotSwiftTests",
      "sources" : [
        "SmoldotSwiftTests.swift"
      ],
      "target_dependencies" : [
        "SmoldotSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SmoldotSwift",
      "module_type" : "SwiftTarget",
      "name" : "SmoldotSwift",
      "path" : "Sources/SmoldotSwift",
      "product_dependencies" : [
        "JSONRPC2"
      ],
      "product_memberships" : [
        "SmoldotSwift"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/SmoldotSwift/Resources/kusama.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/SmoldotSwift/Resources/polkadot.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/SmoldotSwift/Resources/rococo.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/SmoldotSwift/Resources/westend.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Chain+Resources.swift",
        "Chain+Specification.swift",
        "Chain.swift",
        "Client.swift",
        "ClientError.swift",
        "JSONObject.swift",
        "JSONRPC2Request.swift",
        "SmoldotSwift.swift"
      ],
      "target_dependencies" : [
        "CSmoldot"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CSmoldot",
      "module_type" : "ClangTarget",
      "name" : "CSmoldot",
      "path" : "Sources/CSmoldot",
      "product_memberships" : [
        "SmoldotSwift"
      ],
      "sources" : [
        "bridge.c"
      ],
      "target_dependencies" : [
        "smoldot"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.