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 ldk-node, reference v0.4.2 (215661), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 20:40:48 UTC.

Swift 6 data race errors: 1

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lightningdevkit/ldk-node.git
Reference: v0.4.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/lightningdevkit/ldk-node
 * tag               v0.4.2     -> FETCH_HEAD
HEAD is now at 2156611 Merge pull request #391 from tnull/2024-10-cut-0.4.2
Cloned https://github.com/lightningdevkit/ldk-node.git
Revision (git rev-parse @):
21566111f1c32f6f562a15711158020fa416f1d7
SUCCESS checkout https://github.com/lightningdevkit/ldk-node.git at v0.4.2
[12393/236294051] Downloading https://github.com/lightningdevkit/ldk-node/releases/download/v0.4.2/LDKNodeFFI.xcframework.zip
Downloading binary artifact https://github.com/lightningdevkit/ldk-node/releases/download/v0.4.2/LDKNodeFFI.xcframework.zip
Downloaded https://github.com/lightningdevkit/ldk-node/releases/download/v0.4.2/LDKNodeFFI.xcframework.zip (11.62s)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "ldk-node",
      "name": "ldk-node",
      "url": "https://github.com/lightningdevkit/ldk-node.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ldk-node",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/lightningdevkit/ldk-node.git
[1/6395] Fetching ldk-node
Fetched https://github.com/lightningdevkit/ldk-node.git from cache (1.37s)
Creating working copy for https://github.com/lightningdevkit/ldk-node.git
Working copy of https://github.com/lightningdevkit/ldk-node.git resolved at v0.4.2 (2156611)
Fetching binary artifact https://github.com/lightningdevkit/ldk-node/releases/download/v0.4.2/LDKNodeFFI.xcframework.zip from cache
Fetched https://github.com/lightningdevkit/ldk-node/releases/download/v0.4.2/LDKNodeFFI.xcframework.zip from cache (9.44s)
warning: '.resolve-product-dependencies': dependency 'ldk-node' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/lightningdevkit/ldk-node.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[1/3] Copying LDKNodeFFI.framework
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/5] Emitting module LDKNode
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/LDKNode/LDKNode.swift:7142:17: warning: let 'uniffiContinuationHandleMap' is not concurrency-safe because non-'Sendable' type 'UniffiHandleMap<UnsafeContinuation<Int8, Never>>' may have shared mutable state; this is an error in the Swift 6 language mode
 339 |     }
 340 | }
 341 | fileprivate class UniffiHandleMap<T> {
     |                   `- note: generic class 'UniffiHandleMap' does not conform to the 'Sendable' protocol
 342 |     private var map: [UInt64: T] = [:]
 343 |     private let lock = NSLock()
     :
7140 | private let UNIFFI_RUST_FUTURE_POLL_MAYBE_READY: Int8 = 1
7141 |
7142 | fileprivate let uniffiContinuationHandleMap = UniffiHandleMap<UnsafeContinuation<Int8, Never>>()
     |                 |- warning: let 'uniffiContinuationHandleMap' is not concurrency-safe because non-'Sendable' type 'UniffiHandleMap<UnsafeContinuation<Int8, Never>>' may have shared mutable state; this is an error in the Swift 6 language mode
     |                 |- note: annotate 'uniffiContinuationHandleMap' with '@MainActor' if property should only be accessed from the main actor
     |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7143 |
7144 | fileprivate func uniffiRustCallAsync<F, T>(
[5/5] Compiling LDKNode LDKNode.swift
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/LDKNode/LDKNode.swift:7142:17: warning: let 'uniffiContinuationHandleMap' is not concurrency-safe because non-'Sendable' type 'UniffiHandleMap<UnsafeContinuation<Int8, Never>>' may have shared mutable state; this is an error in the Swift 6 language mode
 339 |     }
 340 | }
 341 | fileprivate class UniffiHandleMap<T> {
     |                   `- note: generic class 'UniffiHandleMap' does not conform to the 'Sendable' protocol
 342 |     private var map: [UInt64: T] = [:]
 343 |     private let lock = NSLock()
     :
7140 | private let UNIFFI_RUST_FUTURE_POLL_MAYBE_READY: Int8 = 1
7141 |
7142 | fileprivate let uniffiContinuationHandleMap = UniffiHandleMap<UnsafeContinuation<Int8, Never>>()
     |                 |- warning: let 'uniffiContinuationHandleMap' is not concurrency-safe because non-'Sendable' type 'UniffiHandleMap<UnsafeContinuation<Int8, Never>>' may have shared mutable state; this is an error in the Swift 6 language mode
     |                 |- note: annotate 'uniffiContinuationHandleMap' with '@MainActor' if property should only be accessed from the main actor
     |                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7143 |
7144 | fileprivate func uniffiRustCallAsync<F, T>(
Build complete! (8.70s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ldk-node",
  "name" : "ldk-node",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "LDKNode",
      "targets" : [
        "LDKNodeFFI",
        "LDKNode"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LDKNodeFFI",
      "module_type" : "BinaryTarget",
      "name" : "LDKNodeFFI",
      "path" : "remote/archive/LDKNodeFFI.xcframework.zip",
      "product_memberships" : [
        "LDKNode"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "LDKNode",
      "module_type" : "SwiftTarget",
      "name" : "LDKNode",
      "path" : "bindings/swift/Sources",
      "product_memberships" : [
        "LDKNode"
      ],
      "sources" : [
        "LDKNode/LDKNode.swift"
      ],
      "target_dependencies" : [
        "LDKNodeFFI"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.