This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 Fuse with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/krisk/fuse-swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/krisk/fuse-swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 26ba868 Updated version
Cloned https://github.com/krisk/fuse-swift.git
Revision (git rev-parse @):
26ba868691b2d8b7bf2b1322951eb591be70ccca
SUCCESS checkout https://github.com/krisk/fuse-swift.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/krisk/fuse-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/6] Compiling Fuse FuseUtilities.swift
[4/6] Compiling Fuse Fuse.swift
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:369:37: warning: capture of 'self' with non-sendable type 'Fuse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | public class Fuse {
    |              `- note: class 'Fuse' does not conform to the 'Sendable' protocol
 30 |     private var location: Int
 31 |     private var distance: Int
    :
367 |
368 |                 for (index, item) in chunk.enumerated() {
369 |                     if let result = self.search(pattern, in: item) {
    |                                     `- warning: capture of 'self' with non-sendable type 'Fuse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
370 |                         chunkItems.append((offset + index, result.score, result.ranges))
371 |                     }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:375:21: warning: mutation of captured var 'items' in concurrently-executing code; this is an error in the Swift 6 language mode
373 |
374 |                 itemsQueue.async {
375 |                     items.append(contentsOf: chunkItems)
    |                     `- warning: mutation of captured var 'items' in concurrently-executing code; this is an error in the Swift 6 language mode
376 |                     group.leave()
377 |                 }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:375:46: warning: reference to captured var 'chunkItems' in concurrently-executing code; this is an error in the Swift 6 language mode
373 |
374 |                 itemsQueue.async {
375 |                     items.append(contentsOf: chunkItems)
    |                                              `- warning: reference to captured var 'chunkItems' in concurrently-executing code; this is an error in the Swift 6 language mode
376 |                     group.leave()
377 |                 }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:386:17: warning: capture of 'completion' with non-sendable type '([Fuse.SearchResult]) -> Void' (aka '(Array<(index: Int, score: Double, ranges: Array<ClosedRange<Int>>)>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
384 |             let sorted = items.sorted { $0.score < $1.score }
385 |             DispatchQueue.main.async {
386 |                 completion(sorted)
    |                 |- warning: capture of 'completion' with non-sendable type '([Fuse.SearchResult]) -> Void' (aka '(Array<(index: Int, score: Double, ranges: Array<ClosedRange<Int>>)>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
387 |             }
388 |         }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:521:38: warning: capture of 'chunk' with non-sendable type '[any Fuseable]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 23 | }
 24 |
 25 | public protocol Fuseable {
    |                 `- note: protocol 'Fuseable' does not conform to the 'Sendable' protocol
 26 |     var properties: [FuseProperty] { get }
 27 | }
    :
519 |                 var chunkResult = [FusableSearchResult]()
520 |
521 |                 for (index, item) in chunk.enumerated() {
    |                                      `- warning: capture of 'chunk' with non-sendable type '[any Fuseable]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
522 |                     var scores = [Double]()
523 |                     var totalScore = 0.0
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:531:41: warning: capture of 'self' with non-sendable type 'Fuse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | public class Fuse {
    |              `- note: class 'Fuse' does not conform to the 'Sendable' protocol
 30 |     private var location: Int
 31 |     private var distance: Int
    :
529 |                         let value = property.name
530 |
531 |                         if let result = self.search(pattern, in: value) {
    |                                         `- warning: capture of 'self' with non-sendable type 'Fuse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 |                             let weight = property.weight == 1 ? 1 : 1 - property.weight
533 |                             let score = result.score * weight
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:531:41: warning: capture of 'self' with non-sendable type 'Fuse' in an isolated closure; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | public class Fuse {
    |              `- note: class 'Fuse' does not conform to the 'Sendable' protocol
 30 |     private var location: Int
 31 |     private var distance: Int
    :
529 |                         let value = property.name
530 |
531 |                         if let result = self.search(pattern, in: value) {
    |                                         `- warning: capture of 'self' with non-sendable type 'Fuse' in an isolated closure; this is an error in the Swift 6 language mode
532 |                             let weight = property.weight == 1 ? 1 : 1 - property.weight
533 |                             let score = result.score * weight
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:554:21: warning: mutation of captured var 'collectionResult' in concurrently-executing code; this is an error in the Swift 6 language mode
552 |
553 |                 collectionResultQueue.async {
554 |                     collectionResult.append(contentsOf: chunkResult)
    |                     `- warning: mutation of captured var 'collectionResult' in concurrently-executing code; this is an error in the Swift 6 language mode
555 |                     group.leave()
556 |                 }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:554:57: warning: reference to captured var 'chunkResult' in concurrently-executing code; this is an error in the Swift 6 language mode
552 |
553 |                 collectionResultQueue.async {
554 |                     collectionResult.append(contentsOf: chunkResult)
    |                                                         `- warning: reference to captured var 'chunkResult' in concurrently-executing code; this is an error in the Swift 6 language mode
555 |                     group.leave()
556 |                 }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:565:17: warning: capture of 'completion' with non-sendable type '([Fuse.FusableSearchResult]) -> Void' (aka '(Array<(index: Int, score: Double, results: Array<(key: String, score: Double, ranges: Array<ClosedRange<Int>>)>)>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
563 |             let sorted = collectionResult.sorted { $0.score < $1.score }
564 |             DispatchQueue.main.async {
565 |                 completion(sorted)
    |                 |- warning: capture of 'completion' with non-sendable type '([Fuse.FusableSearchResult]) -> Void' (aka '(Array<(index: Int, score: Double, results: Array<(key: String, score: Double, ranges: Array<ClosedRange<Int>>)>)>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
566 |             }
567 |         }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:386:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
384 |             let sorted = items.sorted { $0.score < $1.score }
385 |             DispatchQueue.main.async {
386 |                 completion(sorted)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
387 |             }
388 |         }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:565:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
563 |             let sorted = collectionResult.sorted { $0.score < $1.score }
564 |             DispatchQueue.main.async {
565 |                 completion(sorted)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
566 |             }
567 |         }
[5/6] Emitting module Fuse
[6/6] Compiling Fuse String+Fuse.swift
Build complete! (17.29s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Fuse",
  "name" : "Fuse",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "Fuse",
      "targets" : [
        "Fuse"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "Fuse",
      "module_type" : "SwiftTarget",
      "name" : "Fuse",
      "path" : "Fuse",
      "product_memberships" : [
        "Fuse"
      ],
      "sources" : [
        "Classes/Fuse.swift",
        "Classes/FuseUtilities.swift",
        "Classes/String+Fuse.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.