From d162617838265e2804f0fc427bed4398f5b1c08b Mon Sep 17 00:00:00 2001 From: Eric Horacek Date: Wed, 28 Feb 2024 04:47:12 -0800 Subject: [PATCH] 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 --- Package.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 2932e199..3e8a9389 100644 --- a/Package.swift +++ b/Package.swift @@ -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"), ]