-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc86299
commit c0021e5
Showing
6 changed files
with
75 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// swift-tools-version: 6.0 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "swift-identified-collections", | ||
products: [ | ||
.library( | ||
name: "IdentifiedCollections", | ||
targets: ["IdentifiedCollections"] | ||
) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-collections", from: "1.0.2"), | ||
.package(url: "https://github.com/apple/swift-collections-benchmark", from: "0.0.2"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "IdentifiedCollections", | ||
dependencies: [ | ||
.product(name: "OrderedCollections", package: "swift-collections") | ||
] | ||
), | ||
.testTarget( | ||
name: "IdentifiedCollectionsTests", | ||
dependencies: ["IdentifiedCollections"] | ||
), | ||
.executableTarget( | ||
name: "swift-identified-collections-benchmark", | ||
dependencies: [ | ||
"IdentifiedCollections", | ||
.product(name: "CollectionsBenchmark", package: "swift-collections-benchmark"), | ||
] | ||
), | ||
], | ||
swiftLanguageVersions: [.v6] | ||
) | ||
|
||
#if !os(Windows) | ||
// DocC needs to be ported to Windows | ||
// https://github.com/thebrowsercompany/swift-build/issues/39 | ||
package.dependencies.append( | ||
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0") | ||
) | ||
#endif |
6 changes: 2 additions & 4 deletions
6
Sources/IdentifiedCollections/IdentifiedArray/IdentifiedArray+Sendable.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
#if swift(>=5.5) | ||
extension IdentifiedArray: @unchecked Sendable | ||
where ID: Sendable, Element: Sendable {} | ||
#endif | ||
extension IdentifiedArray: @unchecked Sendable | ||
where ID: Sendable, Element: Sendable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters