diff --git a/Benchmarks/Benchmarks/PersistentDictionaryBenchmarks.swift b/Benchmarks/Benchmarks/PersistentDictionaryBenchmarks.swift index 099c99dd..938cebd0 100644 --- a/Benchmarks/Benchmarks/PersistentDictionaryBenchmarks.swift +++ b/Benchmarks/Benchmarks/PersistentDictionaryBenchmarks.swift @@ -10,7 +10,7 @@ //===----------------------------------------------------------------------===// import CollectionsBenchmark -import Capsule +import PersistentCollections extension Benchmark { public mutating func addPersistentDictionaryBenchmarks() { diff --git a/Benchmarks/Libraries/Capsule.json b/Benchmarks/Libraries/PersistentCollections.json similarity index 99% rename from Benchmarks/Libraries/Capsule.json rename to Benchmarks/Libraries/PersistentCollections.json index 1be42351..23c37a4d 100644 --- a/Benchmarks/Libraries/Capsule.json +++ b/Benchmarks/Libraries/PersistentCollections.json @@ -1,6 +1,6 @@ { "kind": "group", - "title": "Capsule Benchmarks", + "title": "PersistentCollections Benchmarks", "directory": "Results", "contents": [ { diff --git a/Package.swift b/Package.swift index 9a290404..ccb80d95 100644 --- a/Package.swift +++ b/Package.swift @@ -54,8 +54,8 @@ let package = Package( .library(name: "Collections", targets: ["Collections"]), .library(name: "DequeModule", targets: ["DequeModule"]), .library(name: "OrderedCollections", targets: ["OrderedCollections"]), + .library(name: "PersistentCollections", targets: ["PersistentCollections"]), .library(name: "PriorityQueueModule", targets: ["PriorityQueueModule"]), - .library(name: "Capsule", targets: ["Capsule"]), ], targets: [ .target( @@ -63,8 +63,8 @@ let package = Package( dependencies: [ "DequeModule", "OrderedCollections", + "PersistentCollections", "PriorityQueueModule", - "Capsule", ], path: "Sources/Collections", exclude: ["CMakeLists.txt"], @@ -106,6 +106,15 @@ let package = Package( dependencies: ["OrderedCollections", "_CollectionsTestSupport"], swiftSettings: settings), + // PersistentDictionary + .target( + name: "PersistentCollections", + swiftSettings: settings), + .testTarget( + name: "PersistentCollectionsTests", + dependencies: ["PersistentCollections", "_CollectionsTestSupport"], + swiftSettings: settings), + // PriorityQueue .target( name: "PriorityQueueModule", @@ -115,14 +124,5 @@ let package = Package( name: "PriorityQueueTests", dependencies: ["PriorityQueueModule"], swiftSettings: settings), - - // PersistentDictionary - .target( - name: "Capsule", - swiftSettings: settings), - .testTarget( - name: "CapsuleTests", - dependencies: ["Capsule", "_CollectionsTestSupport"], - swiftSettings: settings), ] ) diff --git a/Sources/Collections/Collections.swift b/Sources/Collections/Collections.swift index 806cc887..ec989b30 100644 --- a/Sources/Collections/Collections.swift +++ b/Sources/Collections/Collections.swift @@ -11,5 +11,5 @@ @_exported import DequeModule @_exported import OrderedCollections +@_exported import PersistentCollections @_exported import PriorityQueueModule -@_exported import Capsule diff --git a/Sources/Capsule/PersistentDictionary+CVarArg.swift b/Sources/PersistentCollections/PersistentDictionary+CVarArg.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+CVarArg.swift rename to Sources/PersistentCollections/PersistentDictionary+CVarArg.swift diff --git a/Sources/Capsule/PersistentDictionary+Collection.swift b/Sources/PersistentCollections/PersistentDictionary+Collection.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+Collection.swift rename to Sources/PersistentCollections/PersistentDictionary+Collection.swift diff --git a/Sources/Capsule/PersistentDictionary+CustomDebugStringConvertible.swift b/Sources/PersistentCollections/PersistentDictionary+CustomDebugStringConvertible.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+CustomDebugStringConvertible.swift rename to Sources/PersistentCollections/PersistentDictionary+CustomDebugStringConvertible.swift diff --git a/Sources/Capsule/PersistentDictionary+CustomReflectible.swift b/Sources/PersistentCollections/PersistentDictionary+CustomReflectible.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+CustomReflectible.swift rename to Sources/PersistentCollections/PersistentDictionary+CustomReflectible.swift diff --git a/Sources/Capsule/PersistentDictionary+CustomStringConvertible.swift b/Sources/PersistentCollections/PersistentDictionary+CustomStringConvertible.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+CustomStringConvertible.swift rename to Sources/PersistentCollections/PersistentDictionary+CustomStringConvertible.swift diff --git a/Sources/Capsule/PersistentDictionary+Decodable.swift b/Sources/PersistentCollections/PersistentDictionary+Decodable.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+Decodable.swift rename to Sources/PersistentCollections/PersistentDictionary+Decodable.swift diff --git a/Sources/Capsule/PersistentDictionary+Encodable.swift b/Sources/PersistentCollections/PersistentDictionary+Encodable.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+Encodable.swift rename to Sources/PersistentCollections/PersistentDictionary+Encodable.swift diff --git a/Sources/Capsule/PersistentDictionary+Equatable.swift b/Sources/PersistentCollections/PersistentDictionary+Equatable.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+Equatable.swift rename to Sources/PersistentCollections/PersistentDictionary+Equatable.swift diff --git a/Sources/Capsule/PersistentDictionary+ExpressibleByDictionaryLiteral.swift b/Sources/PersistentCollections/PersistentDictionary+ExpressibleByDictionaryLiteral.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+ExpressibleByDictionaryLiteral.swift rename to Sources/PersistentCollections/PersistentDictionary+ExpressibleByDictionaryLiteral.swift diff --git a/Sources/Capsule/PersistentDictionary+Hashable.swift b/Sources/PersistentCollections/PersistentDictionary+Hashable.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+Hashable.swift rename to Sources/PersistentCollections/PersistentDictionary+Hashable.swift diff --git a/Sources/Capsule/PersistentDictionary+Keys.swift b/Sources/PersistentCollections/PersistentDictionary+Keys.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+Keys.swift rename to Sources/PersistentCollections/PersistentDictionary+Keys.swift diff --git a/Sources/Capsule/PersistentDictionary+Sequence.swift b/Sources/PersistentCollections/PersistentDictionary+Sequence.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+Sequence.swift rename to Sources/PersistentCollections/PersistentDictionary+Sequence.swift diff --git a/Sources/Capsule/PersistentDictionary+Values.swift b/Sources/PersistentCollections/PersistentDictionary+Values.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary+Values.swift rename to Sources/PersistentCollections/PersistentDictionary+Values.swift diff --git a/Sources/Capsule/PersistentDictionary.swift b/Sources/PersistentCollections/PersistentDictionary.swift similarity index 100% rename from Sources/Capsule/PersistentDictionary.swift rename to Sources/PersistentCollections/PersistentDictionary.swift diff --git a/Sources/Capsule/_BitmapIndexedDictionaryNode+CustomDebugStringConvertible.swift b/Sources/PersistentCollections/_BitmapIndexedDictionaryNode+CustomDebugStringConvertible.swift similarity index 100% rename from Sources/Capsule/_BitmapIndexedDictionaryNode+CustomDebugStringConvertible.swift rename to Sources/PersistentCollections/_BitmapIndexedDictionaryNode+CustomDebugStringConvertible.swift diff --git a/Sources/Capsule/_BitmapIndexedDictionaryNode+CustomStringConvertible.swift b/Sources/PersistentCollections/_BitmapIndexedDictionaryNode+CustomStringConvertible.swift similarity index 100% rename from Sources/Capsule/_BitmapIndexedDictionaryNode+CustomStringConvertible.swift rename to Sources/PersistentCollections/_BitmapIndexedDictionaryNode+CustomStringConvertible.swift diff --git a/Sources/Capsule/_BitmapIndexedDictionaryNode.swift b/Sources/PersistentCollections/_BitmapIndexedDictionaryNode.swift similarity index 100% rename from Sources/Capsule/_BitmapIndexedDictionaryNode.swift rename to Sources/PersistentCollections/_BitmapIndexedDictionaryNode.swift diff --git a/Sources/Capsule/_Common.swift b/Sources/PersistentCollections/_Common.swift similarity index 100% rename from Sources/Capsule/_Common.swift rename to Sources/PersistentCollections/_Common.swift diff --git a/Sources/Capsule/_DictionaryEffect.swift b/Sources/PersistentCollections/_DictionaryEffect.swift similarity index 100% rename from Sources/Capsule/_DictionaryEffect.swift rename to Sources/PersistentCollections/_DictionaryEffect.swift diff --git a/Sources/Capsule/_DictionaryNode.swift b/Sources/PersistentCollections/_DictionaryNode.swift similarity index 100% rename from Sources/Capsule/_DictionaryNode.swift rename to Sources/PersistentCollections/_DictionaryNode.swift diff --git a/Tests/CapsuleTests/CapsuleSmokeTests.swift b/Tests/PersistentCollectionsTests/PersistentCollections Smoke Tests.swift similarity index 99% rename from Tests/CapsuleTests/CapsuleSmokeTests.swift rename to Tests/PersistentCollectionsTests/PersistentCollections Smoke Tests.swift index 4608c4b0..9b669bdd 100644 --- a/Tests/CapsuleTests/CapsuleSmokeTests.swift +++ b/Tests/PersistentCollectionsTests/PersistentCollections Smoke Tests.swift @@ -2,7 +2,7 @@ // // This source file is part of the Swift Collections open source project // -// Copyright (c) 2019 - 2021 Apple Inc. and the Swift project authors +// Copyright (c) 2019 - 2022 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information @@ -10,7 +10,7 @@ //===----------------------------------------------------------------------===// import _CollectionsTestSupport -@testable import Capsule +@testable import PersistentCollections final class CapsuleSmokeTests: CollectionTestCase { func testSubscriptAdd() { diff --git a/Tests/CapsuleTests/Capsule Tests.swift b/Tests/PersistentCollectionsTests/PersistentCollections Tests.swift similarity index 99% rename from Tests/CapsuleTests/Capsule Tests.swift rename to Tests/PersistentCollectionsTests/PersistentCollections Tests.swift index bcfdce24..69c97632 100644 --- a/Tests/CapsuleTests/Capsule Tests.swift +++ b/Tests/PersistentCollectionsTests/PersistentCollections Tests.swift @@ -2,7 +2,7 @@ // // This source file is part of the Swift Collections open source project // -// Copyright (c) 2021 Apple Inc. and the Swift project authors +// Copyright (c) 2021 - 2022 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information @@ -10,7 +10,7 @@ //===----------------------------------------------------------------------===// import _CollectionsTestSupport -@testable import Capsule +@testable import PersistentCollections class PersistentDictionaryTests: CollectionTestCase { func test_empty() { diff --git a/Tests/CapsuleTests/Capsule Utils.swift b/Tests/PersistentCollectionsTests/PersistentCollections Utils.swift similarity index 97% rename from Tests/CapsuleTests/Capsule Utils.swift rename to Tests/PersistentCollectionsTests/PersistentCollections Utils.swift index 900235af..78f815a8 100644 --- a/Tests/CapsuleTests/Capsule Utils.swift +++ b/Tests/PersistentCollectionsTests/PersistentCollections Utils.swift @@ -10,7 +10,7 @@ //===----------------------------------------------------------------------===// import _CollectionsTestSupport -import Capsule +import PersistentCollections extension LifetimeTracker { func persistentDictionary( diff --git a/Tests/CapsuleTests/CollidableInt.swift b/Tests/PersistentCollectionsTests/_CollidableInt.swift similarity index 100% rename from Tests/CapsuleTests/CollidableInt.swift rename to Tests/PersistentCollectionsTests/_CollidableInt.swift