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 main (9d4a9b), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 08:43:31 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/finsig/smoldot-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9d4a9b1 Update README.md
Cloned https://github.com/finsig/smoldot-swift.git
Revision (git rev-parse @):
9d4a9b15fe449f44b792091247c56947163732b6
SUCCESS checkout https://github.com/finsig/smoldot-swift.git at main
========================================
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/6] Write sources
[0/6] Copying libsmoldot_c_ffi.a
[2/6] Write sources
[4/6] Write swift-version-117DEE11B69C53C9.txt
[5/6] Compiling CSmoldot bridge.c
[7/10] Emitting module JSON
[8/10] Compiling JSON Primitive.swift
[9/10] Compiling JSON JSON.swift
[10/10] Compiling JSON Object.swift
[11/20] Compiling JSONRPC2 RequestParameters.swift
[12/21] Compiling JSONRPC2 JSONRPC2Error.swift
[13/21] Compiling JSONRPC2 Batch.swift
[14/21] Compiling JSONRPC2 JSONRPC2.swift
[15/21] Compiling JSONRPC2 JSONRPCVersion.swift
[16/21] Compiling JSONRPC2 Identifier.swift
[17/21] Emitting module JSONRPC2
[18/21] Compiling JSONRPC2 JSONRPC2ErrorCode.swift
[19/21] Compiling JSONRPC2 Notification.swift
[20/21] Compiling JSONRPC2 Request.swift
[21/21] Compiling JSONRPC2 Response.swift
[22/29] Compiling SmoldotSwift SmoldotSwift.swift
[23/29] Compiling SmoldotSwift ClientError.swift
[24/29] Compiling SmoldotSwift JSONObject.swift
[25/29] Compiling SmoldotSwift JSONRPC2Request.swift
[26/29] Compiling SmoldotSwift Client.swift
/Users/admin/builder/spi-builder-workspace/Sources/SmoldotSwift/Client.swift:102: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
100 |
101 |         AsyncThrowingStream<String,Error>(String.self, bufferingPolicy: bufferingPolicy, { continuation in
102 |             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
103 |                 while (true) {
104 |                     guard let id = chain.id else {
[27/29] Compiling SmoldotSwift Chain.swift
[28/29] Emitting module SmoldotSwift
[29/29] Compiling SmoldotSwift Chain+Specification.swift
Build complete! (30.29s)
Fetching https://github.com/finsig/json-rpc2
[1/42] Fetching json-rpc2
Fetched https://github.com/finsig/json-rpc2 from cache (0.68s)
Computing version for https://github.com/finsig/json-rpc2
Computed https://github.com/finsig/json-rpc2 at 0.1.1 (3.19s)
Fetching https://github.com/finsig/json
[1/26] Fetching json
Fetched https://github.com/finsig/json from cache (0.69s)
Computing version for https://github.com/finsig/json
Computed https://github.com/finsig/json at 0.1.0 (0.69s)
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
[32750/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.00s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "json-rpc2",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.1",
            "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",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/SmoldotSwiftTests/Resources/kusama.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/SmoldotSwiftTests/Resources/polkadot.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/SmoldotSwiftTests/Resources/rococo.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/SmoldotSwiftTests/Resources/westend.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "SmoldotSwiftTests.swift"
      ],
      "target_dependencies" : [
        "SmoldotSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SmoldotSwift",
      "module_type" : "SwiftTarget",
      "name" : "SmoldotSwift",
      "path" : "Sources/SmoldotSwift",
      "product_dependencies" : [
        "JSONRPC2"
      ],
      "product_memberships" : [
        "SmoldotSwift"
      ],
      "sources" : [
        "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.