Depend on specific products from swift-collections (#307)

* Only depend on OrderedCollections from swift-collections

Before this change, once consumers update to SwiftCollections 1.1.0 they'll pull in all of the new collection dependencies (HashTree, BitCollections, etc.). In our case, this increased our binary size by ~1MB. To fix this, we switch to only depending on what we need.

* Add DequeModule dependency
This commit is contained in:
Eric Horacek authored and GitHub committed 2024-02-28 12:47:12 +00:00
1 parent 14729ea7f9
commit d162617838
1 file changed
+4 -1
+4 -1
View File
@@ -20,7 +20,10 @@ let package = Package(
targets: [
.target(
name: "AsyncAlgorithms",
dependencies: [.product(name: "Collections", package: "swift-collections")],
dependencies: [
.product(name: "OrderedCollections", package: "swift-collections"),
.product(name: "DequeModule", package: "swift-collections"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency=complete"),
]