Skip to content

Commit d162617

Browse files
authored
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
1 parent 14729ea commit d162617

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Package.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ let package = Package(
2020
targets: [
2121
.target(
2222
name: "AsyncAlgorithms",
23-
dependencies: [.product(name: "Collections", package: "swift-collections")],
23+
dependencies: [
24+
.product(name: "OrderedCollections", package: "swift-collections"),
25+
.product(name: "DequeModule", package: "swift-collections"),
26+
],
2427
swiftSettings: [
2528
.enableExperimentalFeature("StrictConcurrency=complete"),
2629
]

0 commit comments

Comments
 (0)