17 Commits
Author SHA1 Message Date
Karoy Lorentey 463946edae ContainersPreview: Adjust import statements in Foundation toolchain module mode 2026-10-08 18:32:47 -07:00
Karoy Lorentey 44b674265c Update import statements 2026-09-29 15:41:05 -07:00
Karoy Lorentey 8e4f078441 Producer.generate(into:): Switch to saturating semantics
This noticeable simplifies client code, as clients invariably want to fully populate their buffer (when possible). It also is consistent with the semantics of `Iterable.skip(by:)`.
2026-09-21 13:07:01 -07:00
Karoy Lorentey 842f125c47 Invert dependencies to ContainersPreview, moving all container APIs there
- Move `InputSpan` into its own module, `SpanPreview`. Add dependencies to it.
- Invert dependencies to `ContainersPreview`, so that no production target imports it, but it now depends on its previous dependents.
- Move all generic APIs and conformances using `Producer`/`Drain`/`Container` to the `ContainersPreview` module.
- Remove `UnstableContainersPreview` conditions around `Iterable` APIs

In summary, importing `BasicContainers` and `DequeModule` continue to get us the basic definitions for `RigidArray`, `UniqueSet`, `RigidDeque` etc., without most of their unstable APIs. (With the exception of core APIs that require `InputSpan`.)

To get any API that uses an unstable protocol like `Container` or `Drain`, we’ll now need to import `ContainersPreview` in addition to the type-defining module.

This will provide a slightly less horrible migration path when (if) the container/producer protocol family gets adopted/adapted into the stdlib.
2026-08-25 18:29:58 -07:00
Karoy Lorentey de3b9b67be [ContainersPreview] Move helpers to InternalCollectionsUtilities 2026-06-18 13:20:38 -07:00
Karoy Lorentey 3d68fc1107 Clean up the UniqueBox/Ref/MutableRef situation
- UniqueBox is public API, so we cannot remove it in favor of the stdlib’s
- Remove Ref and MutableRef. Keep an internal _MutableRef to work around stdlib limitations.
2026-06-17 18:29:41 -07:00
Franz Busch 3c373b900c Use the defines from traits directly
Package traits already pass defines with their trait name when building. Instead of adding our own conditional defines based on the traits we can use the trait provided defines directly. I observed that various tooling behaves better with the trait provided defines.
2026-05-06 07:41:02 -07:00
Karoy Lorentey 3dc65340f3 [ContainersPreview] Fix support for Swift 6.2 2026-03-17 13:45:15 -07:00
Karoy Lorentey 121462fe19 [ContainersPreview] Add some implementations of .filter 2026-03-16 15:04:30 -07:00
Karoy Lorentey 1c69635852 Add SPDX-License-Identifier tags 2026-03-05 19:39:24 -08:00
Karoy Lorentey 8ef702c8a5 Remove workaround for OutputSpan.wUMBP bug 2026-02-05 17:07:03 -08:00
Karoy Lorentey 772c426bc9 Oh this is proving a bit more difficult than ideal 2026-01-29 15:02:53 -08:00
Karoy Lorentey 801d361bbb Reinstate OutputSpan additions accidentally removed during merge 2026-01-29 14:39:07 -08:00
Karoy Lorentey 70dd9cd5d9 Merge branch 'main' into all-hands-on-deque
# Conflicts:
#	Sources/BasicContainers/RigidArray+Insertions.swift
#	Sources/ContainersPreview/OutputSpan+Extras.swift
2026-01-29 14:29:47 -08:00
Karoy Lorentey 3a1498781a Fix support for older compilers 2026-01-26 11:18:59 -08:00
Karoy Lorentey 9a4ee93406 Simplify some RIgidArray operations 2026-01-26 11:18:59 -08:00
Karoy Lorentey e4aba4c1c9 Iterable → BorrowingSequence, BorrowIterator → BorrowingIterator 2026-01-25 16:42:37 -08:00