The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Cast, reference stage (9c5ac3), with Swift 6.2 for macOS (SPM) on 27 Jun 2026 01:08:04 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64

Build Log

[1699/1782] Compiling map.cpp
[1700/1782] Compiling io_types.cpp
[1701/1782] Compiling io.cpp
[1702/1782] Compiling error.cpp
[1703/1782] Compiling Cmlx.m
[1704/1782] Compiling fft.cpp
[1705/1782] Write sources
[1708/1782] Compiling CNIOWindows shim.c
[1709/1786] Compiling export.cpp
[1710/1786] Compiling CNIOWindows WSAStartup.c
[1711/1786] Compiling fast.cpp
[1712/1786] Compiling CNIOWindows shim.c
[1713/1786] Compiling CNIOWindows WSAStartup.c
[1714/1786] Compiling CNIOWASI CNIOWASI.c
[1716/1786] Compiling CNIOOpenBSD shim.c
[1718/1786] Compiling CNIOLinux shim.c
[1719/1786] Compiling CNIOLinux liburing_shims.c
[1720/1786] Compiling CNIOLinux shim.c
[1721/1786] Compiling CNIOLinux liburing_shims.c
[1722/1786] Compiling CNIOFreeBSD shim.c
[1724/1786] Compiling format.cc
[1725/1786] Compiling cuda.cpp
[1726/1786] Compiling device.cpp
[1727/1786] Compiling compile.cpp
[1728/1786] Compiling CNIODarwin shim.c
[1730/1786] Compiling binary.cpp
[1731/1786] Compiling closure.cpp
[1732/1786] Compiling array.cpp
[1733/1786] Compiling recursion_guard.cc
[1734/1823] Compiling testing.cc
[1735/1823] Compiling c-nioatomics.c
[1736/1823] Compiling tokenizer_info.cc
[1737/1823] Compiling c-nioatomics.c
[1739/1823] Compiling CastMacros CastMacroPlugin.swift
[1740/1823] Compiling CastMacros CastableDiagnostic.swift
[1741/1823] Emitting module CastMacros
[1742/1823] Compiling CastMacros CastableMacro.swift
[1742/1823] Compiling c-atomics.c
[1743/1823] Write Objects.LinkFileList
[1744/1823] Compiling c-atomics.c
[1746/1830] Compiling MLX Foundation+Util.swift
[1747/1830] Compiling MLX GPU+Metal.swift
[1748/1830] Compiling MLX IO.swift
[1749/1830] Compiling MLX Linalg.swift
[1750/1833] Emitting module MLX
[1751/1833] Emitting module NIOConcurrencyHelpers
[1752/1833] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[1753/1833] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[1754/1833] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[1755/1833] Compiling NIOConcurrencyHelpers NIOLock.swift
[1756/1833] Compiling NIOConcurrencyHelpers lock.swift
[1757/1833] Compiling NIOConcurrencyHelpers atomics.swift
[1758/1833] Compiling MLX Transforms+CompileOverloads.swift
[1759/1833] Compiling MLX Transforms+Eval.swift
[1760/1833] Compiling MLX Transforms+Grad.swift
[1761/1833] Compiling MLX Transforms+Internal.swift
[1762/1833] Compiling MLX ArrayAt.swift
[1763/1833] Compiling MLX Cmlx+Util.swift
[1764/1833] Compiling MLX DType.swift
[1765/1833] Compiling MLX Device.swift
[1766/1833] Compiling MLX MLXArray+Normalizer.swift
[1767/1833] Compiling MLX MLXArray+Ops.swift
[1768/1833] Compiling MLX MLXArray.swift
[1769/1833] Compiling MLX MLXCustomFunction.swift
[1770/1840] Compiling MLX Random.swift
[1771/1840] Compiling MLX State.swift
[1772/1840] Compiling MLX Stream.swift
[1773/1840] Compiling MLX Transforms+Compile.swift
[1774/1840] Compiling MLX ErrorHandler.swift
[1775/1840] Compiling MLX Export.swift
[1776/1840] Compiling MLX FFT.swift
[1777/1840] Compiling MLX Factory.swift
[1778/1840] Compiling MLX MLXFast.swift
[1779/1840] Compiling MLX MLXFastKernel.swift
[1780/1840] Compiling MLX Memory.swift
[1781/1840] Compiling MLX Nested.swift
[1782/1840] Compiling MLX Ops+Array.swift
[1783/1840] Compiling MLX Ops.swift
[1784/1840] Compiling MLX ParameterTypes.swift
[1785/1840] Compiling MLX Protocols.swift
[1785/1840] Compiling grammar_parser.cc
[1787/1840] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[1788/1840] Compiling NIOConcurrencyHelpers lock.swift
[1789/1840] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[1790/1840] Compiling NIOConcurrencyHelpers atomics.swift
[1791/1840] Compiling NIOConcurrencyHelpers NIOLock.swift
[1792/1840] Emitting module NIOConcurrencyHelpers
[1793/1840] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[1794/1840] Compiling MLX Transforms+Vmap.swift
[1795/1840] Compiling MLX Transforms.swift
[1796/1840] Compiling MLX WiredMemory.swift
[1796/1840] Linking CastMacros-tool
[1797/1840] Compiling grammar_builder.cc
[1799/1840] Compiling MLX MLXArray+Bytes.swift
[1800/1840] Compiling MLX MLXArray+Indexing.swift
[1801/1840] Compiling MLX MLXArray+Init.swift
[1802/1840] Compiling MLX MLXArray+Metal.swift
[1802/1840] Compiling fsm_builder.cc
[1803/1840] Compiling grammar_matcher.cc
[1804/1858] Compiling config.cc
[1805/1858] Compiling grammar.cc
[1806/1858] Compiling CMLXStructured grammar_compiler.cpp
[1807/1858] Compiling CMLXStructured grammar_matcher.cpp
[1808/1858] Compiling grammar_functor.cc
[1809/1858] Compiling earley_parser.cc
[1810/1858] Compiling grammar_compiler.cc
[1811/1858] Compiling logging.cc
[1812/1858] Compiling recursion_guard.cc
[1814/1858] Compiling MLXNN PositionalEncoding.swift
[1815/1858] Compiling MLXNN Quantized.swift
[1816/1858] Compiling MLXNN Normalization.swift
[1817/1858] Compiling MLXNN Pooling.swift
[1818/1858] Compiling MLXNN ConvolutionTransposed.swift
[1819/1858] Compiling MLXNN Dropout.swift
[1820/1858] Compiling MLXNN Losses.swift
[1821/1858] Compiling MLXNN Module.swift
[1822/1858] Compiling MLXNN Containers.swift
[1823/1858] Compiling MLXNN Convolution.swift
[1824/1858] Compiling MLXNN Activations.swift
[1825/1858] Compiling MLXNN Cache.swift
[1826/1858] Compiling MLXNN Embedding.swift
[1827/1858] Compiling MLXNN Linear.swift
[1828/1858] Compiling MLXNN Recurrent.swift
[1829/1858] Compiling MLXNN Transformer.swift
[1830/1858] Compiling MLXNN Upsample.swift
[1831/1859] Emitting module MLXNN
[1832/1859] Compiling MLXNN ValueAndGrad.swift
[1832/1859] Compiling regex_converter.cc
[1833/1861] Compiling testing.cc
[1834/1861] Compiling fsm.cc
[1835/1861] Compiling tokenizer_info.cc
[1836/1861] Compiling compiled_grammar.cc
[1837/1861] Compiling json_schema_converter_ext.cc
[1839/1861] Compiling MLXOptimizers Optimizers.swift
[1840/1861] Emitting module MLXOptimizers
[1840/1861] Compiling grammar_printer.cc
[1841/1861] Compiling grammar_parser.cc
[1842/1861] Compiling grammar_builder.cc
[1843/1861] Compiling json_schema_converter.cc
[1844/1861] Compiling grammar_matcher.cc
[1845/1861] Compiling fsm_builder.cc
[1846/1861] Compiling config.cc
[1847/1861] Compiling grammar.cc
[1847/1861] Write sources
[1852/1861] Compiling CMLXStructured grammar_matcher.cpp
[1853/1861] Compiling CMLXStructured tokenizer_info.cpp
[1854/1861] Compiling grammar_functor.cc
[1855/2009] Compiling grammar_compiler.cc
[1857/2009] Compiling BitCollections BitSet+Codable.swift
[1858/2009] Compiling BitCollections BitSet+CustomDebugStringConvertible.swift
[1859/2009] Compiling BitCollections BitSet+CustomReflectable.swift
[1860/2009] Compiling BitCollections BitSet+CustomStringConvertible.swift
[1861/2009] Compiling BitCollections BitSet+Equatable.swift
[1862/2009] Compiling BitCollections BitSet+ExpressibleByArrayLiteral.swift
[1863/2015] Compiling Atomics AtomicValue.swift
[1864/2015] Compiling Atomics AtomicMemoryOrderings.swift
[1865/2016] Compiling Atomics PointerConformances.swift
[1866/2016] Compiling Atomics Primitives.native.swift
[1867/2016] Compiling Atomics ManagedAtomicLazyReference.swift
[1868/2016] Compiling Atomics UnsafeAtomic.swift
[1869/2016] Compiling Atomics AtomicReference.swift
[1870/2016] Compiling Atomics AtomicStorage.swift
[1876/2022] Compiling earley_parser.cc
[1882/2022] Compiling Atomics UnsafeAtomicLazyReference.swift
[1883/2022] Compiling Atomics IntegerOperations.swift
[1884/2022] Compiling Atomics DoubleWord.swift
[1885/2022] Compiling Atomics ManagedAtomic.swift
[1886/2023] Compiling BitCollections BitArray+CustomReflectable.swift
[1887/2023] Compiling BitCollections BitArray+Descriptions.swift
[1888/2023] Compiling BitCollections BitArray+Equatable.swift
[1889/2023] Compiling BitCollections BitArray+ExpressibleByArrayLiteral.swift
[1890/2023] Compiling BitCollections BitArray+LosslessStringConvertible.swift
[1891/2023] Compiling BitCollections BitArray+RandomBits.swift
[1891/2023] Compiling CMLXStructured grammar_compiler.cpp
[1893/2023] Compiling Atomics Unmanaged extensions.swift
[1893/2023] Compiling fsm.cc
[1895/2023] Compiling Atomics AtomicInteger.swift
[1896/2023] Compiling Atomics AtomicOptionalWrappable.swift
[1899/2023] Compiling Atomics AtomicBool.swift
[1900/2023] Compiling Atomics IntegerConformances.swift
[1903/2023] Compiling Atomics Unmanaged extensions.swift
[1904/2023] Compiling BitCollections BitSet+SetAlgebra subtracting.swift
[1905/2023] Compiling BitCollections BitSet+SetAlgebra symmetricDifference.swift
[1906/2023] Compiling BitCollections BitSet+SetAlgebra union.swift
[1907/2023] Compiling BitCollections BitSet+Sorted Collection APIs.swift
[1908/2023] Compiling BitCollections BitSet.Counted.swift
[1909/2023] Compiling BitCollections BitSet.Index.swift
[1910/2023] Compiling BitCollections BitSet+SetAlgebra conformance.swift
[1911/2023] Compiling BitCollections BitSet+SetAlgebra formIntersection.swift
[1912/2023] Compiling BitCollections BitSet+SetAlgebra formSymmetricDifference.swift
[1913/2023] Compiling BitCollections BitSet+SetAlgebra formUnion.swift
[1914/2023] Compiling BitCollections BitSet+SetAlgebra intersection.swift
[1915/2023] Compiling BitCollections BitSet+SetAlgebra isDisjoint.swift
[1922/2023] Compiling BitCollections BitSet+SetAlgebra isEqualSet.swift
[1923/2023] Compiling BitCollections BitSet+SetAlgebra isStrictSubset.swift
[1924/2023] Compiling BitCollections BitSet+SetAlgebra isStrictSuperset.swift
[1925/2023] Compiling BitCollections BitSet+SetAlgebra isSubset.swift
[1926/2023] Compiling BitCollections BitSet+SetAlgebra isSuperset.swift
[1927/2023] Compiling BitCollections BitSet+SetAlgebra subtract.swift
[1928/2023] Compiling BitCollections BitSet+Extras.swift
[1929/2023] Compiling BitCollections BitSet+Hashable.swift
[1930/2023] Compiling BitCollections BitSet+Initializers.swift
[1931/2023] Compiling BitCollections BitSet+Invariants.swift
[1932/2023] Compiling BitCollections BitSet+Random.swift
[1933/2023] Compiling BitCollections BitSet+SetAlgebra basics.swift
[1964/2023] Compiling BitCollections BitSet._UnsafeHandle.swift
[1965/2023] Compiling BitCollections BitSet.swift
[1966/2023] Compiling BitCollections Range+Utilities.swift
[1967/2023] Compiling BitCollections Slice+Utilities.swift
[1968/2023] Compiling BitCollections UInt+Tricks.swift
[1969/2023] Compiling BitCollections _Word.swift
[1969/2023] Compiling structural_tag.cc
[1977/2023] Compiling Atomics OptionalRawRepresentable.swift
[1978/2023] Compiling Atomics RawRepresentable.swift
[1989/2023] Emitting module BitCollections
[2015/2035] Compiling Collections HashTreeCollections reexports.swift
[2016/2035] Compiling Collections OrderedCollections reexports.swift
[2017/2035] Compiling Collections HeapModule reexports.swift
[2018/2035] Compiling Collections DequeModule reexports.swift
[2019/2035] Compiling Collections HeapModule reexports.swift
[2020/2035] Compiling Collections OrderedCollections reexports.swift
[2021/2035] Compiling Collections HashTreeCollections reexports.swift
[2022/2035] Emitting module Collections
[2023/2035] Compiling Collections BitCollections reexports.swift
[2024/2035] Compiling Collections DequeModule reexports.swift
[2025/2035] Emitting module Collections
[2026/2035] Compiling Collections BitCollections reexports.swift
[2033/2035] Emitting module Atomics
[2034/2185] Compiling compiled_grammar.cc
[2036/2185] Compiling NIOCore MarkedCircularBuffer.swift
[2037/2185] Compiling NIOCore MulticastChannel.swift
[2038/2185] Compiling NIOCore NIOAny.swift
[2039/2185] Compiling NIOCore NIOCloseOnErrorHandler.swift
[2040/2185] Compiling NIOCore NIOCoreSendableMetatype.swift
[2041/2185] Compiling NIOCore NIODecodedAsyncSequence.swift
[2042/2185] Compiling NIOCore NIOLoopBound.swift
[2043/2192] Compiling NIOCore NIOAsyncWriter.swift
[2044/2192] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[2045/2192] Compiling NIOCore BSDSocketAPI.swift
[2046/2192] Compiling NIOCore ByteBuffer-aux.swift
[2047/2192] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[2048/2192] Compiling NIOCore ByteBuffer-conversions.swift
[2049/2192] Compiling NIOCore ByteBuffer-core.swift
[2050/2192] Compiling NIOCore IO.swift
[2051/2192] Compiling NIOCore IOData.swift
[2052/2192] Compiling NIOCore IPProtocol.swift
[2053/2192] Compiling NIOCore IntegerBitPacking.swift
[2054/2192] Compiling NIOCore IntegerTypes.swift
[2055/2192] Compiling NIOCore Interfaces.swift
[2056/2192] Compiling NIOCore Linux.swift
[2064/2199] Compiling NIOCore AddressedEnvelope.swift
[2065/2199] Compiling NIOCore AsyncAwaitSupport.swift
[2066/2199] Compiling NIOCore AsyncChannel.swift
[2067/2199] Compiling NIOCore AsyncChannelHandler.swift
[2068/2199] Compiling NIOCore AsyncChannelInboundStream.swift
[2069/2199] Compiling NIOCore AsyncChannelOutboundWriter.swift
[2070/2199] Compiling NIOCore NIOAsyncSequenceProducer.swift
[2071/2199] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[2072/2199] Compiling NIOCore EventLoopFuture+Deprecated.swift
[2073/2199] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[2074/2199] Compiling NIOCore EventLoopFuture.swift
[2075/2199] Compiling NIOCore FileDescriptor.swift
[2076/2199] Compiling NIOCore FileHandle.swift
[2077/2199] Compiling NIOCore FileRegion.swift
[2078/2199] Compiling NIOCore GlobalSingletons.swift
[2079/2199] Compiling JSONSchema JSONSchema+String.swift
[2080/2200] Compiling JSONSchema JSONSchema+ObjectProperties.swift
[2081/2200] Compiling JSONSchema JSONSchema+Object.swift
[2082/2200] Emitting module JSONSchema
[2083/2200] Compiling JSONSchema JSONSchema+Integer.swift
[2084/2200] Compiling JSONSchema JSONSchema+Object.swift
[2085/2200] Compiling JSONSchema JSONSchema+String.swift
[2086/2200] Compiling JSONSchema JSONSchema+ObjectProperties.swift
[2087/2200] Compiling JSONSchema JSONSchema+Number.swift
[2088/2201] Compiling JSONSchema JSONSchema+Null.swift
[2089/2201] Compiling JSONSchema JSONSchema+Number.swift
[2090/2201] Compiling JSONSchema JSONSchema+Array.swift
[2091/2201] Compiling JSONSchema JSONSchema+Boolean.swift
[2092/2201] Compiling JSONSchema JSONSchema+Enum.swift
[2093/2201] Emitting module JSONSchema
[2094/2201] Compiling JSONSchema JSONSchema+Null.swift
[2095/2201] Compiling JSONSchema JSONSchema+Integer.swift
[2096/2201] Compiling JSONSchema JSONSchema+Array.swift
[2097/2201] Compiling JSONSchema JSONSchema+Boolean.swift
[2098/2201] Compiling JSONSchema JSONSchema+Enum.swift
[2099/2201] Compiling JSONSchema JSONSchema.swift
[2101/2201] Compiling NIOCore SocketAddresses.swift
[2102/2201] Compiling NIOCore SocketOptionProvider.swift
[2103/2201] Compiling NIOCore SystemCallHelpers.swift
[2104/2201] Compiling NIOCore TimeAmount+Duration.swift
[2105/2201] Compiling NIOCore TypeAssistedChannelHandler.swift
[2106/2201] Compiling NIOCore UniversalBootstrapSupport.swift
[2107/2201] Compiling NIOCore Utilities.swift
[2108/2201] Compiling NIOCore ChannelHandler.swift
[2109/2201] Compiling NIOCore ChannelHandlers.swift
[2110/2201] Compiling NIOCore ChannelInvoker.swift
[2111/2201] Compiling NIOCore ChannelOption.swift
[2112/2201] Compiling NIOCore ChannelPipeline.swift
[2113/2201] Compiling NIOCore CircularBuffer.swift
[2114/2201] Compiling NIOCore Codec.swift
[2122/2201] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[2123/2201] Compiling NIOCore NIOScheduledCallback.swift
[2124/2201] Compiling NIOCore NIOSendable.swift
[2125/2201] Compiling NIOCore NIOSplitLinesMessageDecoder.swift
[2126/2201] Compiling NIOCore NIOTransportAccessibleChannelCore.swift
[2127/2201] Compiling NIOCore RecvByteBufferAllocator.swift
[2128/2201] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[2143/2201] Compiling NIOCore ConvenienceOptionSupport.swift
[2144/2201] Compiling NIOCore DeadChannel.swift
[2145/2201] Compiling NIOCore DispatchQueue+WithFuture.swift
[2146/2201] Compiling NIOCore EventLoop+Deprecated.swift
[2147/2201] Compiling NIOCore EventLoop+SerialExecutor.swift
[2148/2201] Compiling NIOCore EventLoop.swift
[2149/2201] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[2150/2201] Compiling NIOCore ByteBuffer-hex.swift
[2151/2201] Compiling NIOCore ByteBuffer-int.swift
[2152/2201] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[2153/2201] Compiling NIOCore ByteBuffer-multi-int.swift
[2154/2201] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[2155/2201] Compiling NIOCore ByteBuffer-views.swift
[2156/2201] Compiling NIOCore Channel.swift
[2193/2201] Emitting module NIOCore
[2202/2211] Compiling EventSource AsyncEventsSequence.swift
[2203/2211] Compiling EventSource AsyncSequence+Events.swift
[2204/2211] Compiling EventSource EventSource.swift
[2205/2211] Compiling EventSource EventSource+AsyncHTTPClient.swift
[2206/2211] Emitting module EventSource
[2207/2211] Compiling EventSource EventSource+AsyncHTTPClient.swift
[2208/2211] Emitting module EventSource
[2209/2211] Compiling EventSource AsyncSequence+Events.swift
[2210/2211] Compiling EventSource AsyncEventsSequence.swift
[2211/2211] Compiling EventSource EventSource.swift
[2212/2311] Compiling HuggingFace FeatureExtraction.swift
[2213/2311] Compiling HuggingFace InferenceClient.swift
[2214/2311] Compiling HuggingFace Message.swift
[2215/2311] Compiling HuggingFace Provider.swift
[2216/2311] Compiling HuggingFace SpeechToText.swift
[2217/2316] Compiling HuggingFace Model.swift
[2218/2316] Compiling HuggingFace ResourceGroup.swift
[2219/2316] Compiling HuggingFace Space.swift
[2220/2316] Compiling HuggingFace Tags.swift
[2221/2316] Compiling HuggingFace User.swift
[2222/2316] Compiling HuggingFace Discussion.swift
[2223/2316] Compiling HuggingFace HubClient+Papers.swift
[2224/2316] Compiling HuggingFace HubClient+Repos.swift
[2225/2316] Compiling HuggingFace HubClient+Spaces.swift
[2226/2316] Compiling HuggingFace HubClient+User.swift
[2227/2316] Compiling HuggingFace HubClient.swift
[2228/2321] Compiling HuggingFace OAuth.swift
[2229/2321] Compiling HuggingFace Organization.swift
[2230/2321] Compiling HuggingFace Pagination.swift
[2231/2321] Compiling HuggingFace Paper.swift
[2232/2321] Compiling HuggingFace Repo.swift
[2233/2321] Compiling HuggingFace File.swift
[2234/2321] Compiling HuggingFace Git.swift
[2235/2321] Compiling HuggingFace HubCache.swift
[2236/2321] Compiling HuggingFace HubClient+Collections.swift
[2237/2321] Compiling HuggingFace HubClient+Datasets.swift
[2238/2321] Compiling HuggingFace HubClient+Discussions.swift
[2244/2321] Compiling HuggingFace ChatCompletion.swift
[2245/2321] Compiling HuggingFace TextToImage.swift
[2246/2321] Compiling HuggingFace TextToVideo.swift
[2247/2321] Compiling HuggingFace HuggingFaceAuthenticationManager.swift
[2248/2321] Compiling HuggingFace OAuthClient.swift
[2249/2321] Compiling HuggingFace TokenStorage.swift
[2250/2321] Compiling HuggingFace HubClient+Files.swift
[2251/2321] Compiling HuggingFace HubClient+Git.swift
[2252/2321] Compiling HuggingFace HubClient+Models.swift
[2253/2321] Compiling HuggingFace HubClient+OAuth.swift
[2254/2321] Compiling HuggingFace HubClient+Organizations.swift
[2255/2321] Compiling HuggingFace HubClient+Pagination.swift
[2256/2321] Compiling HuggingFace CacheLocationProvider.swift
[2257/2321] Compiling HuggingFace Data+Extensions.swift
[2258/2321] Compiling HuggingFace JSONDecoder+Extensions.swift
[2259/2321] Compiling HuggingFace URL+Extensions.swift
[2260/2321] Compiling HuggingFace URLSession+Linux.swift
[2271/2321] Compiling HuggingFace FileLock.swift
[2272/2321] Compiling HuggingFace HTTPClient.swift
[2273/2321] Compiling HuggingFace MultipartBuilder.swift
[2274/2321] Compiling HuggingFace TokenProvider.swift
[2275/2321] Compiling HuggingFace Value.swift
[2276/2321] Emitting module HuggingFace
[2294/2321] Compiling HuggingFace AccessRequest.swift
[2295/2321] Compiling HuggingFace Billing.swift
[2296/2321] Compiling HuggingFace Collection.swift
[2297/2321] Compiling HuggingFace CommaSeparatedList.swift
[2298/2321] Compiling HuggingFace Dataset.swift
[2322/2335] Compiling Hub resource_bundle_accessor.swift
[2324/2335] Compiling Hub YYJSONParser.swift
[2326/2335] Compiling Hub Config.swift
[2327/2335] Compiling Hub Hub.swift
[2328/2335] Emitting module Hub
[2329/2335] Compiling Hub HubApi.swift
[2330/2335] Compiling Hub BinaryDistinct.swift
[2331/2335] Compiling Hub Config.swift
[2332/2335] Emitting module Hub
[2333/2335] Compiling Hub Hub.swift
[2334/2335] Compiling Hub HubApi.swift
[2335/2335] Compiling Hub BinaryDistinct.swift
[2336/2359] Compiling Tokenizers Trie.swift
[2338/2361] Compiling Tokenizers String+PreTokenization.swift
[2339/2361] Compiling Tokenizers PostProcessor.swift
[2340/2361] Compiling Tokenizers PreTokenizer.swift
[2341/2361] Compiling Tokenizers Normalizer.swift
[2342/2361] Compiling Tokenizers ByteEncoder.swift
[2343/2361] Compiling Tokenizers Decoder.swift
[2344/2361] Compiling Tokenizers UnigramTokenizer.swift
[2345/2361] Emitting module Tokenizers
[2346/2361] Compiling Tokenizers BPETokenizer.swift
[2347/2361] Compiling Tokenizers BertTokenizer.swift
[2348/2361] Compiling Tokenizers UnigramTokenizer.swift
[2349/2361] Compiling Tokenizers TokenLattice.swift
[2350/2361] Compiling Tokenizers Tokenizer.swift
[2351/2361] Compiling Tokenizers TokenLattice.swift
[2352/2361] Compiling Tokenizers String+PreTokenization.swift
[2353/2361] Compiling Tokenizers PostProcessor.swift
[2356/2361] Compiling Tokenizers Normalizer.swift
[2359/2361] Emitting module Tokenizers
[2360/2361] Compiling Tokenizers Tokenizer.swift
[2361/2361] Compiling Tokenizers PreTokenizer.swift
[2362/2381] Compiling Generation TopPLogitsWarper.swift
[2363/2381] Compiling Generation TemperatureLogitsWarper.swift
[2365/2381] Compiling Generation TopKLogitsWarper.swift
[2366/2381] Compiling Generation LogitsProcessor.swift
[2367/2381] Compiling Generation MinPLogitsWarper.swift
[2368/2381] Compiling Generation GenerationConfig.swift
[2369/2381] Compiling Generation RepetitionPenaltyLogitsProcessor.swift
[2370/2381] Compiling Generation TopKLogitsWarper.swift
[2371/2381] Compiling Generation TopPLogitsWarper.swift
[2372/2381] Compiling Generation MinPLogitsWarper.swift
[2373/2381] Compiling Generation RepetitionPenaltyLogitsProcessor.swift
[2374/2381] Compiling Generation LogitsProcessor.swift
[2375/2381] Compiling Generation GenerationConfig.swift
[2376/2381] Compiling Generation Decoders.swift
[2377/2381] Emitting module Generation
[2378/2381] Compiling Generation Generation.swift
[2379/2381] Compiling Generation Decoders.swift
[2380/2381] Emitting module Generation
[2381/2381] Compiling Generation Generation.swift
[2382/2389] Compiling Models Weights.swift
[2384/2389] Compiling Models LanguageModelTypes.swift
[2385/2389] Emitting module Models
[2386/2389] Compiling Models LanguageModel.swift
[2387/2389] Compiling Models LanguageModelTypes.swift
[2388/2389] Emitting module Models
[2389/2389] Compiling Models LanguageModel.swift
[2390/2483] Compiling MLXLMCommon Tool.swift
[2391/2483] Compiling MLXLMCommon ToolCall.swift
[2392/2483] Compiling MLXLMCommon ToolCallFormat.swift
[2393/2483] Compiling MLXLMCommon ToolCallProcessor.swift
[2394/2483] Compiling MLXLMCommon ToolParameter.swift
[2395/2488] Compiling MLXLMCommon Tokenizer.swift
[2396/2488] Compiling MLXLMCommon GLM4ToolCallParser.swift
[2397/2488] Compiling MLXLMCommon GemmaFunctionParser.swift
[2398/2488] Compiling MLXLMCommon JSONToolCallParser.swift
[2399/2488] Compiling MLXLMCommon KimiK2ToolCallParser.swift
[2400/2488] Compiling MLXLMCommon MiniMaxM2ToolCallParser.swift
[2401/2488] Compiling MLXLMCommon MistralToolCallParser.swift
[2402/2488] Compiling MLXLMCommon ParserUtilities.swift
[2403/2488] Compiling MLXLMCommon PythonicToolCallParser.swift
[2404/2488] Compiling MLXLMCommon XMLFunctionParser.swift
[2405/2488] Emitting module MLXLMCommon
[2406/2489] Compiling MLXLMCommon ModelTypeRegistry.swift
[2407/2489] Compiling MLXLMCommon ProcessorTypeRegistry.swift
[2408/2489] Compiling MLXLMCommon RoPEUtils.swift
[2409/2489] Compiling MLXLMCommon SuScaledRoPE.swift
[2410/2489] Compiling MLXLMCommon SwitchLayers.swift
[2411/2492] Compiling MLXLMCommon ModelContainer.swift
[2412/2492] Compiling MLXLMCommon ModelFactory.swift
[2413/2492] Compiling MLXLMCommon Gemma.swift
[2414/2492] Compiling MLXLMCommon Module+Extensions.swift
[2415/2492] Compiling MLXLMCommon AbstractModelRegistry.swift
[2416/2493] Compiling MLXLMCommon JSONDecodingTypes.swift
[2417/2493] Compiling MLXLMCommon KVCache.swift
[2418/2493] Compiling MLXLMCommon LanguageModel.swift
[2419/2493] Compiling MLXLMCommon Load.swift
[2420/2493] Compiling MLXLMCommon ModelConfiguration.swift
[2431/2493] Compiling MLXLMCommon DoRA+Layers.swift
[2432/2493] Compiling MLXLMCommon LoRA+Layers.swift
[2433/2493] Compiling MLXLMCommon LoRAContainer.swift
[2434/2493] Compiling MLXLMCommon LoRAModel.swift
[2435/2493] Compiling MLXLMCommon ModelAdapter.swift
[2436/2493] Compiling MLXLMCommon ModelAdapterFactory.swift
[2437/2493] Emitting module MLXLMCommon
[2438/2493] Compiling MLXLMCommon ChatSession.swift
[2439/2493] Compiling MLXLMCommon Evaluate.swift
[2440/2493] Compiling MLXLMCommon Encodable+toolResult.swift
[2441/2493] Compiling MLXLMCommon JSONDecoder+JSON5.swift
[2442/2493] Compiling MLXLMCommon GenerationConfigFile.swift
[2443/2493] Compiling MLXLMCommon InterpolationUtils.swift
[2444/2493] Compiling MLXLMCommon ModelAdapterTypeRegistry.swift
[2445/2493] Compiling MLXLMCommon AttentionUtils.swift
[2446/2493] Compiling MLXLMCommon BaseConfiguration.swift
[2447/2493] Compiling MLXLMCommon Chat.swift
[2484/2493] Compiling MLXLMCommon Value.swift
[2485/2493] Compiling MLXLMCommon UserInput.swift
[2486/2493] Compiling MLXLMCommon SerialAccessContainer.swift
[2487/2493] Compiling MLXLMCommon WiredMemoryPolicies.swift
[2488/2493] Compiling MLXLMCommon WiredMemoryUtils.swift
[2494/2619] Compiling MLXStructured StructuralTag+Builder.swift
[2495/2620] Compiling MLXStructured Grammar+Structural.swift
[2496/2620] Compiling MLXStructured GrammarMatcherFactory.swift
[2497/2620] Compiling MLXStructured Grammar.swift
[2498/2620] Compiling MLXStructured GrammarMaskedLogitProcessor.swift
[2499/2620] Compiling MLXStructured GrammarMatcher.swift
[2500/2620] Compiling MLXStructured GrammarMatcherFactory.swift
[2501/2620] Compiling MLXStructured Grammar.swift
[2502/2620] Compiling MLXStructured StructuralTag+Builder.swift
[2503/2620] Compiling MLXStructured GrammarMatcher.swift
[2504/2620] Compiling MLXStructured GrammarMaskedLogitProcessor.swift
[2505/2621] Compiling MLXStructured Grammar+Structural.swift
[2506/2621] Compiling MLXLLM Bitnet.swift
[2507/2621] Compiling MLXLLM Cohere.swift
[2508/2621] Compiling MLXLLM DeepseekV3.swift
[2509/2621] Compiling MLXLLM Ernie4_5.swift
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:28:12: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
 26 |     let processor = try await GrammarMaskedLogitProcessor.from(configuration: context.configuration, grammar: grammar)
 27 |     let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
 28 |     return generate(input: input, context: context, iterator: iterator, didGenerate: didGenerate)
    |            `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:71:20: warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
 69 |         sampler: sampler
 70 |     )
 71 |     let upstream = generate(input: input, context: context, iterator: iterator)
    |                    `- warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
 72 |
 73 |     return AsyncThrowingStream { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:117:18: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
115 |     let processor = try await GrammarMaskedLogitProcessor.from(configuration: context.configuration, grammar: grammar)
116 |     let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
117 |     let result = generate(input: input, context: context, iterator: iterator, didGenerate: didGenerate)
    |                  `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
118 |     let content = try JSONDecoder().decode(Content.self, from: Data(result.output.utf8))
119 |     return (result, content)
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:139:22: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
137 |         )
138 |         let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
139 |         let result = generate(input: input, context: context, iterator: iterator, didGenerate: didGenerate)
    |                      `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
140 |         let content = try Content(GeneratedContent(json: result.output))
141 |         return (result, content)
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:159:22: warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
157 |         )
158 |         let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
159 |         let stream = generate(input: input, context: context, iterator: iterator)
    |                      `- warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
160 |         return AsyncStream { continuation in
161 |             let task = Task {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:28:12: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
 26 |     let processor = try await GrammarMaskedLogitProcessor.from(configuration: context.configuration, grammar: grammar)
 27 |     let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
 28 |     return generate(input: input, context: context, iterator: iterator, didGenerate: didGenerate)
    |            `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:71:20: warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
 69 |         sampler: sampler
 70 |     )
 71 |     let upstream = generate(input: input, context: context, iterator: iterator)
    |                    `- warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
 72 |
 73 |     return AsyncThrowingStream { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:117:18: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
115 |     let processor = try await GrammarMaskedLogitProcessor.from(configuration: context.configuration, grammar: grammar)
116 |     let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
117 |     let result = generate(input: input, context: context, iterator: iterator, didGenerate: didGenerate)
    |                  `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
118 |     let content = try JSONDecoder().decode(Content.self, from: Data(result.output.utf8))
119 |     return (result, content)
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:139:22: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
137 |         )
138 |         let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
139 |         let result = generate(input: input, context: context, iterator: iterator, didGenerate: didGenerate)
    |                      `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
140 |         let content = try Content(GeneratedContent(json: result.output))
141 |         return (result, content)
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:159:22: warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
157 |         )
158 |         let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
159 |         let stream = generate(input: input, context: context, iterator: iterator)
    |                      `- warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
160 |         return AsyncStream { continuation in
161 |             let task = Task {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:28:12: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
 26 |     let processor = try await GrammarMaskedLogitProcessor.from(configuration: context.configuration, grammar: grammar)
 27 |     let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
 28 |     return generate(input: input, context: context, iterator: iterator, didGenerate: didGenerate)
    |            `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:71:20: warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
 69 |         sampler: sampler
 70 |     )
 71 |     let upstream = generate(input: input, context: context, iterator: iterator)
    |                    `- warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
 72 |
 73 |     return AsyncThrowingStream { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:117:18: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
115 |     let processor = try await GrammarMaskedLogitProcessor.from(configuration: context.configuration, grammar: grammar)
116 |     let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
117 |     let result = generate(input: input, context: context, iterator: iterator, didGenerate: didGenerate)
    |                  `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
118 |     let content = try JSONDecoder().decode(Content.self, from: Data(result.output.utf8))
119 |     return (result, content)
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:139:22: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
137 |         )
138 |         let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
139 |         let result = generate(input: input, context: context, iterator: iterator, didGenerate: didGenerate)
    |                      `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
140 |         let content = try Content(GeneratedContent(json: result.output))
141 |         return (result, content)
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:159:22: warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
157 |         )
158 |         let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
159 |         let stream = generate(input: input, context: context, iterator: iterator)
    |                      `- warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
160 |         return AsyncStream { continuation in
161 |             let task = Task {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:28:12: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
 26 |     let processor = try await GrammarMaskedLogitProcessor.from(configuration: context.configuration, grammar: grammar)
 27 |     let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
 28 |     return generate(input: input, context: context, iterator: iterator, didGenerate: didGenerate)
    |            `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
 29 | }
 30 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:71:20: warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
 69 |         sampler: sampler
 70 |     )
 71 |     let upstream = generate(input: input, context: context, iterator: iterator)
    |                    `- warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
 72 |
 73 |     return AsyncThrowingStream { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:117:18: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
115 |     let processor = try await GrammarMaskedLogitProcessor.from(configuration: context.configuration, grammar: grammar)
116 |     let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
117 |     let result = generate(input: input, context: context, iterator: iterator, didGenerate: didGenerate)
    |                  `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
118 |     let content = try JSONDecoder().decode(Content.self, from: Data(result.output.utf8))
119 |     return (result, content)
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:139:22: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
137 |         )
138 |         let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
139 |         let result = generate(input: input, context: context, iterator: iterator, didGenerate: didGenerate)
    |                      `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
140 |         let content = try Content(GeneratedContent(json: result.output))
141 |         return (result, content)
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Generate.swift:159:22: warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
157 |         )
158 |         let iterator = try TokenIterator(input: input, model: context.model, processor: processor, sampler: sampler)
159 |         let stream = generate(input: input, context: context, iterator: iterator)
    |                      `- warning: 'generate(input:context:iterator:wiredMemoryTicket:)' is deprecated: use a higher level generate() call or use generateTask() for fine grained control [#DeprecatedDeclaration]
160 |         return AsyncStream { continuation in
161 |             let task = Task {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[2514/2621] Compiling MLXLLM BaichuanM1.swift
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Backends/XGrammar.swift:86:30: warning: 'raw' is deprecated: Prefer constructing prompt manually, this property will be removed in the future versions [#DeprecatedDeclaration]
 84 |
 85 |         let compiledGrammar = switch grammar {
 86 |         case _ where grammar.raw.isEmpty:
    |                              `- warning: 'raw' is deprecated: Prefer constructing prompt manually, this property will be removed in the future versions [#DeprecatedDeclaration]
 87 |             throw XGrammarError.emptyGrammar
 88 |         case .ebnf(let ebnf):
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[2515/2621] Compiling MLXLLM BailingMoe.swift
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Backends/XGrammar.swift:86:30: warning: 'raw' is deprecated: Prefer constructing prompt manually, this property will be removed in the future versions [#DeprecatedDeclaration]
 84 |
 85 |         let compiledGrammar = switch grammar {
 86 |         case _ where grammar.raw.isEmpty:
    |                              `- warning: 'raw' is deprecated: Prefer constructing prompt manually, this property will be removed in the future versions [#DeprecatedDeclaration]
 87 |             throw XGrammarError.emptyGrammar
 88 |         case .ebnf(let ebnf):
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[2516/2621] Emitting module MLXStructured
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Backends/XGrammar.swift:86:30: warning: 'raw' is deprecated: Prefer constructing prompt manually, this property will be removed in the future versions [#DeprecatedDeclaration]
 84 |
 85 |         let compiledGrammar = switch grammar {
 86 |         case _ where grammar.raw.isEmpty:
    |                              `- warning: 'raw' is deprecated: Prefer constructing prompt manually, this property will be removed in the future versions [#DeprecatedDeclaration]
 87 |             throw XGrammarError.emptyGrammar
 88 |         case .ebnf(let ebnf):
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Backends/XGrammar.swift:86:30: warning: 'raw' is deprecated: Prefer constructing prompt manually, this property will be removed in the future versions [#DeprecatedDeclaration]
 84 |
 85 |         let compiledGrammar = switch grammar {
 86 |         case _ where grammar.raw.isEmpty:
    |                              `- warning: 'raw' is deprecated: Prefer constructing prompt manually, this property will be removed in the future versions [#DeprecatedDeclaration]
 87 |             throw XGrammarError.emptyGrammar
 88 |         case .ebnf(let ebnf):
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[2520/2621] Compiling MLXStructured StructuralTag.swift
[2522/2621] Compiling MLXLLM PhiMoE.swift
[2523/2621] Compiling MLXLLM Qwen2.swift
[2524/2621] Compiling MLXLLM Qwen3.swift
[2525/2621] Compiling MLXLLM Qwen35.swift
[2526/2621] Compiling MLXLLM Qwen35MoE.swift
[2527/2626] Compiling MLXLLM PhiMoE.swift
[2528/2626] Compiling MLXLLM Qwen2.swift
[2529/2626] Compiling MLXLLM Qwen3.swift
[2530/2626] Compiling MLXLLM Qwen35.swift
[2531/2626] Compiling MLXLLM Phi3.swift
[2532/2626] Emitting module MLXLLM
[2538/2631] Compiling MLXLLM Lille130m.swift
[2539/2631] Compiling MLXLLM Llama.swift
[2540/2631] Compiling MLXLLM MiMo.swift
[2541/2631] Compiling MLXLLM MiMoV2Flash.swift
[2542/2631] Compiling MLXLLM MiniCPM.swift
[2548/2631] Compiling MLXLLM MiniMax.swift
[2549/2631] Compiling MLXLLM Mistral3Text.swift
[2550/2631] Compiling MLXLLM NanoChat.swift
[2551/2631] Compiling MLXLLM NemotronH.swift
[2552/2631] Compiling MLXLLM Olmo2.swift
[2553/2631] Compiling MLXLLM GraniteMoeHybrid.swift
[2554/2631] Compiling MLXLLM Internlm2.swift
[2555/2631] Compiling MLXLLM Jamba.swift
[2556/2631] Compiling MLXLLM LFM2.swift
[2557/2631] Compiling MLXLLM LFM2MoE.swift
[2563/2631] Compiling MLXLLM GatedDelta.swift
[2564/2631] Compiling MLXLLM Gemma.swift
[2565/2631] Compiling MLXLLM Gemma2.swift
[2566/2631] Compiling MLXLLM Gemma3Text.swift
[2567/2631] Compiling MLXLLM Gemma3nText.swift
[2568/2631] Compiling MLXLLM Granite.swift
[2585/2631] Compiling MLXLLM LLMModel.swift
[2586/2631] Compiling MLXLLM LLMModelFactory.swift
[2587/2631] Compiling MLXLLM Lora+Data.swift
[2588/2631] Compiling MLXLLM LoraTrain.swift
[2589/2631] Compiling MLXLLM AfMoE.swift
[2590/2631] Compiling MLXLLM Apertus.swift
[2597/2631] Emitting module MLXLLM
[2598/2631] Compiling MLXLLM Exaone4.swift
[2599/2631] Compiling MLXLLM FalconH1.swift
[2600/2631] Compiling MLXLLM GLM4.swift
[2601/2631] Compiling MLXLLM GLM4MOE.swift
[2602/2631] Compiling MLXLLM GLM4MOELite.swift
[2603/2631] Compiling MLXLLM GPTOSS.swift
[2622/2631] Compiling MLXLLM Qwen3MoE.swift
[2623/2631] Compiling MLXLLM Qwen3Next.swift
[2624/2631] Compiling MLXLLM SSM.swift
[2625/2631] Compiling MLXLLM SmolLM3.swift
[2626/2631] Compiling MLXLLM Starcoder2.swift
[2632/2679] Compiling Cast CastModel.swift
[2633/2679] Compiling Cast Castable.swift
[2634/2679] Compiling Cast GrammarProcessorCache.swift
[2635/2681] Compiling Cast CastConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:99:38: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
 97 |         let result: GenerateResult
 98 |         do {
 99 |             result = try await model.withInFlightRegistration {
    |                                      `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
100 |                 try await withGenerationTimeout(config.timeout) {
101 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:100:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
 98 |         do {
 99 |             result = try await model.withInFlightRegistration {
100 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
101 |                     try await container.perform { context in
102 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:101:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
 99 |             result = try await model.withInFlightRegistration {
100 |                 try await withGenerationTimeout(config.timeout) {
101 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
102 |                         let userInput = UserInput(prompt: fullPrompt)
103 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:109:44: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
107 |                             parameters: parameters
108 |                         )
109 |                         return MLXLMCommon.generate(
    |                                            `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
110 |                             input: lmInput,
111 |                             context: context,
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:109:32: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
107 |                             parameters: parameters
108 |                         )
109 |                         return MLXLMCommon.generate(
    |                                |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                `- note: 'GenerateResult' is a non-Sendable type
110 |                             input: lmInput,
111 |                             context: context,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[2636/2681] Compiling Cast CastEnum.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:99:38: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
 97 |         let result: GenerateResult
 98 |         do {
 99 |             result = try await model.withInFlightRegistration {
    |                                      `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
100 |                 try await withGenerationTimeout(config.timeout) {
101 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:100:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
 98 |         do {
 99 |             result = try await model.withInFlightRegistration {
100 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
101 |                     try await container.perform { context in
102 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:101:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
 99 |             result = try await model.withInFlightRegistration {
100 |                 try await withGenerationTimeout(config.timeout) {
101 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
102 |                         let userInput = UserInput(prompt: fullPrompt)
103 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:109:44: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
107 |                             parameters: parameters
108 |                         )
109 |                         return MLXLMCommon.generate(
    |                                            `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
110 |                             input: lmInput,
111 |                             context: context,
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:109:32: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
107 |                             parameters: parameters
108 |                         )
109 |                         return MLXLMCommon.generate(
    |                                |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                `- note: 'GenerateResult' is a non-Sendable type
110 |                             input: lmInput,
111 |                             context: context,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[2637/2681] Compiling Cast JSONRepair.swift
[2638/2681] Compiling Cast JSONSchema+Excluding.swift
[2639/2681] Compiling Cast SchemaGenerator.swift
[2644/2683] Compiling Cast CastError.swift
[2645/2683] Compiling Cast CastModel+Lifecycle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[2646/2683] Compiling Cast CastModel+Stream.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[2647/2683] Compiling Cast CastModel+Timeout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[2648/2683] Compiling Cast Instrumentation.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+GPUSafety.swift:24:5: warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
25 | }()
26 |
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:137:32: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
135 |         let result: GenerateResult
136 |         do {
137 |             result = try await withInFlightRegistration {
    |                                `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
138 |                 try await withGenerationTimeout(config.timeout) {
139 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:138:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
136 |         do {
137 |             result = try await withInFlightRegistration {
138 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
139 |                     try await container.perform { context in
140 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:139:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
137 |             result = try await withInFlightRegistration {
138 |                 try await withGenerationTimeout(config.timeout) {
139 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
140 |                         let userInput = UserInput(prompt: fullPrompt)
141 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:216:32: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
214 |         let result: GenerateResult
215 |         do {
216 |             result = try await withInFlightRegistration {
    |                                `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
217 |                 try await withGenerationTimeout(config.timeout) {
218 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:217:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
215 |         do {
216 |             result = try await withInFlightRegistration {
217 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
218 |                     try await container.perform { context in
219 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:218:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
216 |             result = try await withInFlightRegistration {
217 |                 try await withGenerationTimeout(config.timeout) {
218 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
219 |                         let userInput = UserInput(prompt: fullPrompt)
220 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:143:42: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
141 |                         let lmInput = try await context.processor.prepare(input: userInput)
142 |
143 |                         return try await MLXStructured.generate(
    |                                          |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                          |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                          `- note: 'GenerateResult' is a non-Sendable type
144 |                             input: lmInput,
145 |                             parameters: parameters,
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:222:42: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
220 |                         let lmInput = try await context.processor.prepare(input: userInput)
221 |
222 |                         return try await MLXStructured.generate(
    |                                          |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                          |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                          `- note: 'GenerateResult' is a non-Sendable type
223 |                             input: lmInput,
224 |                             parameters: parameters,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[2649/2683] Compiling Cast Cast.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+GPUSafety.swift:24:5: warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
25 | }()
26 |
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:137:32: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
135 |         let result: GenerateResult
136 |         do {
137 |             result = try await withInFlightRegistration {
    |                                `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
138 |                 try await withGenerationTimeout(config.timeout) {
139 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:138:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
136 |         do {
137 |             result = try await withInFlightRegistration {
138 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
139 |                     try await container.perform { context in
140 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:139:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
137 |             result = try await withInFlightRegistration {
138 |                 try await withGenerationTimeout(config.timeout) {
139 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
140 |                         let userInput = UserInput(prompt: fullPrompt)
141 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:216:32: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
214 |         let result: GenerateResult
215 |         do {
216 |             result = try await withInFlightRegistration {
    |                                `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
217 |                 try await withGenerationTimeout(config.timeout) {
218 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:217:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
215 |         do {
216 |             result = try await withInFlightRegistration {
217 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
218 |                     try await container.perform { context in
219 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:218:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
216 |             result = try await withInFlightRegistration {
217 |                 try await withGenerationTimeout(config.timeout) {
218 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
219 |                         let userInput = UserInput(prompt: fullPrompt)
220 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:143:42: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
141 |                         let lmInput = try await context.processor.prepare(input: userInput)
142 |
143 |                         return try await MLXStructured.generate(
    |                                          |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                          |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                          `- note: 'GenerateResult' is a non-Sendable type
144 |                             input: lmInput,
145 |                             parameters: parameters,
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:222:42: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
220 |                         let lmInput = try await context.processor.prepare(input: userInput)
221 |
222 |                         return try await MLXStructured.generate(
    |                                          |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                          |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                          `- note: 'GenerateResult' is a non-Sendable type
223 |                             input: lmInput,
224 |                             parameters: parameters,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[2650/2683] Compiling Cast PromptEngine.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+GPUSafety.swift:24:5: warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
25 | }()
26 |
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:137:32: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
135 |         let result: GenerateResult
136 |         do {
137 |             result = try await withInFlightRegistration {
    |                                `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
138 |                 try await withGenerationTimeout(config.timeout) {
139 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:138:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
136 |         do {
137 |             result = try await withInFlightRegistration {
138 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
139 |                     try await container.perform { context in
140 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:139:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
137 |             result = try await withInFlightRegistration {
138 |                 try await withGenerationTimeout(config.timeout) {
139 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
140 |                         let userInput = UserInput(prompt: fullPrompt)
141 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:216:32: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
214 |         let result: GenerateResult
215 |         do {
216 |             result = try await withInFlightRegistration {
    |                                `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
217 |                 try await withGenerationTimeout(config.timeout) {
218 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:217:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
215 |         do {
216 |             result = try await withInFlightRegistration {
217 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
218 |                     try await container.perform { context in
219 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:218:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
216 |             result = try await withInFlightRegistration {
217 |                 try await withGenerationTimeout(config.timeout) {
218 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
219 |                         let userInput = UserInput(prompt: fullPrompt)
220 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:143:42: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
141 |                         let lmInput = try await context.processor.prepare(input: userInput)
142 |
143 |                         return try await MLXStructured.generate(
    |                                          |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                          |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                          `- note: 'GenerateResult' is a non-Sendable type
144 |                             input: lmInput,
145 |                             parameters: parameters,
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:222:42: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
220 |                         let lmInput = try await context.processor.prepare(input: userInput)
221 |
222 |                         return try await MLXStructured.generate(
    |                                          |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                          |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                          `- note: 'GenerateResult' is a non-Sendable type
223 |                             input: lmInput,
224 |                             parameters: parameters,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[2651/2683] Compiling Cast ModelSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[2652/2683] Compiling Cast PartialResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[2653/2683] Compiling Cast PropertyWrappers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
124 |                         )
125 |
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[2654/2683] Compiling Cast CastBench.swift
[2655/2683] Compiling Cast Formatters.swift
[2657/2683] Compiling Cast CastModel+Extract.swift
[2658/2683] Compiling Cast CastModel+GPUSafety.swift
[2659/2683] Compiling Cast CastModel+Generation.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:99:38: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
 97 |         let result: GenerateResult
 98 |         do {
 99 |             result = try await model.withInFlightRegistration {
    |                                      `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
100 |                 try await withGenerationTimeout(config.timeout) {
101 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:100:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
 98 |         do {
 99 |             result = try await model.withInFlightRegistration {
100 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
101 |                     try await container.perform { context in
102 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:101:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
 99 |             result = try await model.withInFlightRegistration {
100 |                 try await withGenerationTimeout(config.timeout) {
101 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
102 |                         let userInput = UserInput(prompt: fullPrompt)
103 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:109:44: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
107 |                             parameters: parameters
108 |                         )
109 |                         return MLXLMCommon.generate(
    |                                            `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
110 |                             input: lmInput,
111 |                             context: context,
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:109:32: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
107 |                             parameters: parameters
108 |                         )
109 |                         return MLXLMCommon.generate(
    |                                |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                `- note: 'GenerateResult' is a non-Sendable type
110 |                             input: lmInput,
111 |                             context: context,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:99:38: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
 97 |         let result: GenerateResult
 98 |         do {
 99 |             result = try await model.withInFlightRegistration {
    |                                      `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
100 |                 try await withGenerationTimeout(config.timeout) {
101 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:100:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
 98 |         do {
 99 |             result = try await model.withInFlightRegistration {
100 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
101 |                     try await container.perform { context in
102 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:101:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
 99 |             result = try await model.withInFlightRegistration {
100 |                 try await withGenerationTimeout(config.timeout) {
101 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
102 |                         let userInput = UserInput(prompt: fullPrompt)
103 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:109:44: warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
107 |                             parameters: parameters
108 |                         )
109 |                         return MLXLMCommon.generate(
    |                                            `- warning: 'generate(input:context:iterator:didGenerate:)' is deprecated: Use the AsyncStream-based generate(input:cache:parameters:context:) instead for better Swift concurrency support [#DeprecatedDeclaration]
110 |                             input: lmInput,
111 |                             context: context,
/Users/admin/builder/spi-builder-workspace/Sources/Cast/Bench/Instrumentation.swift:109:32: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
107 |                             parameters: parameters
108 |                         )
109 |                         return MLXLMCommon.generate(
    |                                |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                `- note: 'GenerateResult' is a non-Sendable type
110 |                             input: lmInput,
111 |                             context: context,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[2669/2683] Compiling Cast ValidatorSupport.swift
[2670/2683] Compiling Cast ZeroSchemaDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+GPUSafety.swift:24:5: warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
25 | }()
26 |
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:137:32: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
135 |         let result: GenerateResult
136 |         do {
137 |             result = try await withInFlightRegistration {
    |                                `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
138 |                 try await withGenerationTimeout(config.timeout) {
139 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:138:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
136 |         do {
137 |             result = try await withInFlightRegistration {
138 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
139 |                     try await container.perform { context in
140 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:139:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
137 |             result = try await withInFlightRegistration {
138 |                 try await withGenerationTimeout(config.timeout) {
139 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
140 |                         let userInput = UserInput(prompt: fullPrompt)
141 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:216:32: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
214 |         let result: GenerateResult
215 |         do {
216 |             result = try await withInFlightRegistration {
    |                                `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
217 |                 try await withGenerationTimeout(config.timeout) {
218 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:217:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
215 |         do {
216 |             result = try await withInFlightRegistration {
217 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
218 |                     try await container.perform { context in
219 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:218:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
216 |             result = try await withInFlightRegistration {
217 |                 try await withGenerationTimeout(config.timeout) {
218 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
219 |                         let userInput = UserInput(prompt: fullPrompt)
220 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:143:42: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
141 |                         let lmInput = try await context.processor.prepare(input: userInput)
142 |
143 |                         return try await MLXStructured.generate(
    |                                          |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                          |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                          `- note: 'GenerateResult' is a non-Sendable type
144 |                             input: lmInput,
145 |                             parameters: parameters,
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:222:42: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
220 |                         let lmInput = try await context.processor.prepare(input: userInput)
221 |
222 |                         return try await MLXStructured.generate(
    |                                          |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                          |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                          `- note: 'GenerateResult' is a non-Sendable type
223 |                             input: lmInput,
224 |                             parameters: parameters,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+GPUSafety.swift:24:5: warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
25 | }()
26 |
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:137:32: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
135 |         let result: GenerateResult
136 |         do {
137 |             result = try await withInFlightRegistration {
    |                                `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
138 |                 try await withGenerationTimeout(config.timeout) {
139 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:138:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
136 |         do {
137 |             result = try await withInFlightRegistration {
138 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
139 |                     try await container.perform { context in
140 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:139:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
137 |             result = try await withInFlightRegistration {
138 |                 try await withGenerationTimeout(config.timeout) {
139 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
140 |                         let userInput = UserInput(prompt: fullPrompt)
141 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:216:32: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
214 |         let result: GenerateResult
215 |         do {
216 |             result = try await withInFlightRegistration {
    |                                `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
217 |                 try await withGenerationTimeout(config.timeout) {
218 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:217:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
215 |         do {
216 |             result = try await withInFlightRegistration {
217 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
218 |                     try await container.perform { context in
219 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:218:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
216 |             result = try await withInFlightRegistration {
217 |                 try await withGenerationTimeout(config.timeout) {
218 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
219 |                         let userInput = UserInput(prompt: fullPrompt)
220 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:143:42: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
141 |                         let lmInput = try await context.processor.prepare(input: userInput)
142 |
143 |                         return try await MLXStructured.generate(
    |                                          |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                          |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                          `- note: 'GenerateResult' is a non-Sendable type
144 |                             input: lmInput,
145 |                             parameters: parameters,
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:222:42: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
220 |                         let lmInput = try await context.processor.prepare(input: userInput)
221 |
222 |                         return try await MLXStructured.generate(
    |                                          |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                          |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                          `- note: 'GenerateResult' is a non-Sendable type
223 |                             input: lmInput,
224 |                             parameters: parameters,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+GPUSafety.swift:24:5: warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
25 | }()
26 |
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:137:32: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
135 |         let result: GenerateResult
136 |         do {
137 |             result = try await withInFlightRegistration {
    |                                `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
138 |                 try await withGenerationTimeout(config.timeout) {
139 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:138:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
136 |         do {
137 |             result = try await withInFlightRegistration {
138 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
139 |                     try await container.perform { context in
140 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:139:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
137 |             result = try await withInFlightRegistration {
138 |                 try await withGenerationTimeout(config.timeout) {
139 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
140 |                         let userInput = UserInput(prompt: fullPrompt)
141 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:147:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
148 |                             didGenerate: { tokens in
149 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:216:32: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
214 |         let result: GenerateResult
215 |         do {
216 |             result = try await withInFlightRegistration {
    |                                `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
217 |                 try await withGenerationTimeout(config.timeout) {
218 |                     try await container.perform { context in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:217:27: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
215 |         do {
216 |             result = try await withInFlightRegistration {
217 |                 try await withGenerationTimeout(config.timeout) {
    |                           `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
218 |                     try await container.perform { context in
219 |                         let userInput = UserInput(prompt: fullPrompt)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:218:41: warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
216 |             result = try await withInFlightRegistration {
217 |                 try await withGenerationTimeout(config.timeout) {
218 |                     try await container.perform { context in
    |                                         `- warning: type 'GenerateResult' does not conform to the 'Sendable' protocol
219 |                         let userInput = UserInput(prompt: fullPrompt)
220 |                         let lmInput = try await context.processor.prepare(input: userInput)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mlx-swift-lm/Libraries/MLXLMCommon/Evaluate.swift:703:15: note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 701 |
 702 | /// Result of a call to a deprecated callback-based generate function.
 703 | public struct GenerateResult {
     |               `- note: struct 'GenerateResult' does not conform to the 'Sendable' protocol
 704 |
 705 |     /// Initializes a new `GenerateResult` instance.
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:226:38: warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-Sendable type 'Grammar' in a '@Sendable' closure [#SendableClosureCaptures]
227 |                             didGenerate: { tokens in
228 |                                 if let didGenerate, didGenerate(tokens.count) == .stop {
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Grammar/Grammar.swift:11:13: note: enum 'Grammar' does not conform to the 'Sendable' protocol
 9 | import JSONSchema
10 |
11 | public enum Grammar {
   |             `- note: enum 'Grammar' does not conform to the 'Sendable' protocol
12 |     case ebnf(String)
13 |     case regex(String)
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:143:42: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
141 |                         let lmInput = try await context.processor.prepare(input: userInput)
142 |
143 |                         return try await MLXStructured.generate(
    |                                          |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                          |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                          `- note: 'GenerateResult' is a non-Sendable type
144 |                             input: lmInput,
145 |                             parameters: parameters,
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Generation.swift:222:42: warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
220 |                         let lmInput = try await context.processor.prepare(input: userInput)
221 |
222 |                         return try await MLXStructured.generate(
    |                                          |- warning: returning a task-isolated 'GenerateResult' value as a 'sending' result risks causing data races
    |                                          |- note: returning a task-isolated 'GenerateResult' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
    |                                          `- note: 'GenerateResult' is a non-Sendable type
223 |                             input: lmInput,
224 |                             parameters: parameters,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[2680/2683] Emitting module Cast
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+GPUSafety.swift:24:5: warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
25 | }()
26 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+GPUSafety.swift:24:5: warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError() [#DeprecatedDeclaration]
25 | }()
26 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Build complete! (209.22s)
Fetching https://github.com/huggingface/swift-transformers.git
Fetching https://github.com/ml-explore/mlx-swift.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/petrukha-ivan/swift-json-schema.git
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/ml-explore/mlx-swift-lm.git
Fetching https://github.com/swiftlang/swift-syntax.git
[1/11247] Fetching mlx-swift-lm
[114/13572] Fetching mlx-swift-lm, swift-docc-plugin
[797/13704] Fetching mlx-swift-lm, swift-docc-plugin, swift-json-schema
[5990/20498] Fetching mlx-swift-lm, swift-docc-plugin, swift-json-schema, swift-transformers
[7653/45737] Fetching mlx-swift-lm, swift-docc-plugin, swift-json-schema, swift-transformers, swift-collections
[9976/60780] Fetching mlx-swift-lm, swift-docc-plugin, swift-json-schema, swift-transformers, swift-collections, mlx-swift
Fetched https://github.com/ml-explore/mlx-swift-lm.git from cache (2.40s)
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (2.40s)
[8845/122958] Fetching swift-json-schema, swift-transformers, swift-collections, mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift.git from cache (10.00s)
Fetched https://github.com/petrukha-ivan/swift-json-schema.git from cache (10.01s)
Fetched https://github.com/huggingface/swift-transformers.git from cache (10.01s)
Fetched https://github.com/apple/swift-collections.git from cache (10.01s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (10.01s)
Computing version for https://github.com/petrukha-ivan/swift-json-schema.git
Computed https://github.com/petrukha-ivan/swift-json-schema.git at 2.0.2 (10.60s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (2.85s)
Computing version for https://github.com/ml-explore/mlx-swift-lm.git
Computed https://github.com/ml-explore/mlx-swift-lm.git at 2.31.3 (0.58s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 1.2.1 (0.56s)
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/huggingface/swift-huggingface.git
[1/1136] Fetching swift-jinja
[638/5734] Fetching swift-jinja, yyjson
[639/8155] Fetching swift-jinja, yyjson, swift-huggingface
[1232/25916] Fetching swift-jinja, yyjson, swift-huggingface, swift-crypto
Fetched https://github.com/huggingface/swift-huggingface.git from cache (1.33s)
[5408/23495] Fetching swift-jinja, yyjson, swift-crypto
Fetched https://github.com/ibireme/yyjson.git from cache (2.82s)
Fetched https://github.com/apple/swift-crypto.git from cache (2.82s)
Fetched https://github.com/huggingface/swift-jinja.git from cache (2.82s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (3.49s)
Computing version for https://github.com/ml-explore/mlx-swift.git
Computed https://github.com/ml-explore/mlx-swift.git at 0.31.4 (0.59s)
Fetching https://github.com/apple/swift-numerics
[1/6429] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.05s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.9.0 (1.63s)
Fetching https://github.com/mattt/EventSource.git
[1/271] Fetching eventsource
Fetched https://github.com/mattt/EventSource.git from cache (0.72s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (1.37s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.51s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (0.65s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3749] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.05s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.76s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.4.1 (0.56s)
Fetching https://github.com/apple/swift-nio.git
[1/84154] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (6.16s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.3.6 (6.76s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.101.2 (0.72s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1868] Fetching swift-atomics
[711/7803] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (1.18s)
Fetched https://github.com/apple/swift-system.git from cache (1.18s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (1.72s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.7.2 (0.56s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.0 (2.36s)
Fetching https://github.com/apple/swift-asn1.git
[1/1905] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.92s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.1 (1.58s)
Creating working copy for https://github.com/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.9.0
Creating working copy for https://github.com/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.101.2
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.7.2
Creating working copy for https://github.com/ml-explore/mlx-swift.git
Working copy of https://github.com/ml-explore/mlx-swift.git resolved at 0.31.4
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.4.1
Creating working copy for https://github.com/petrukha-ivan/swift-json-schema.git
Working copy of https://github.com/petrukha-ivan/swift-json-schema.git resolved at 2.0.2
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/ml-explore/mlx-swift-lm.git
Working copy of https://github.com/ml-explore/mlx-swift-lm.git resolved at 2.31.3
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 1.2.1
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.3.6
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.1
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/600.0.1/swiftlang-6.2.4.1.4-MacroSupport-macos_aarch64.zip
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/CMLXStructured/xgrammar/cpp/nanobind': File not found.
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/CastMacros/CLAUDE.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/CLAUDE.md
Build complete.
{
  "cxx_language_standard" : "gnu++17",
  "dependencies" : [
    {
      "identity" : "mlx-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.30.2",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ml-explore/mlx-swift.git"
    },
    {
      "identity" : "mlx-swift-lm",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.30.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ml-explore/mlx-swift-lm.git"
    },
    {
      "identity" : "swift-transformers",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/huggingface/swift-transformers.git"
    },
    {
      "identity" : "swift-json-schema",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.2",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/petrukha-ivan/swift-json-schema.git"
    },
    {
      "identity" : "swift-collections",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-collections.git"
    },
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "600.0.0",
            "upper_bound" : "601.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-syntax.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "Cast",
  "name" : "Cast",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "Cast",
      "targets" : [
        "Cast"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CastMacros",
      "targets" : [
        "CastMacros"
      ],
      "type" : {
        "macro" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MLXStructuredTests",
      "module_type" : "SwiftTarget",
      "name" : "MLXStructuredTests",
      "path" : "Tests/MLXStructuredTests",
      "product_dependencies" : [
        "MLXLLM"
      ],
      "sources" : [
        "TestErrorHandler.swift",
        "TestGenerablePerformance.swift",
        "TestGrammarMatcher.swift",
        "TestHelpers.swift",
        "TestMemoryLeaks.swift",
        "TestPerformance.swift"
      ],
      "target_dependencies" : [
        "MLXStructured"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MLXStructured",
      "module_type" : "SwiftTarget",
      "name" : "MLXStructured",
      "path" : "Sources/MLXStructured",
      "product_dependencies" : [
        "MLX",
        "MLXLMCommon",
        "JSONSchema"
      ],
      "product_memberships" : [
        "Cast"
      ],
      "sources" : [
        "Backends/DLTensor.swift",
        "Backends/XGrammar.swift",
        "Generate.swift",
        "Grammar/Grammar+Encoding.swift",
        "Grammar/Grammar+Generable.swift",
        "Grammar/Grammar+Schema.swift",
        "Grammar/Grammar+Structural.swift",
        "Grammar/Grammar.swift",
        "GrammarMaskedLogitProcessor.swift",
        "GrammarMatcher.swift",
        "GrammarMatcherFactory.swift",
        "Structural/StructuralTag+Builder.swift",
        "Structural/StructuralTag.swift"
      ],
      "target_dependencies" : [
        "CMLXStructured"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CastTests",
      "module_type" : "SwiftTarget",
      "name" : "CastTests",
      "path" : "Tests/CastTests",
      "product_dependencies" : [
        "MLXLMCommon",
        "Hub",
        "JSONSchema",
        "Collections"
      ],
      "sources" : [
        "CacheTests.swift",
        "CastBenchE2ETests.swift",
        "CastBenchTests.swift",
        "CastConfigurationTests.swift",
        "CastEnumTests.swift",
        "CastErrorTests.swift",
        "CastModelGenerationTests.swift",
        "CastModelTests.swift",
        "CastStreamTests.swift",
        "CastTests.swift",
        "CastTimeoutTests.swift",
        "ChatTemplateTests.swift",
        "ClassifyTests.swift",
        "ExtractTests.swift",
        "GPUSafetyTests.swift",
        "JSONRepairTests.swift",
        "LifecycleTests.swift",
        "ModelSourceTests.swift",
        "NewWrapperTests.swift",
        "PartialResultDecodeTests.swift",
        "PromptEngineTests.swift",
        "PromptEngineThrowsTests.swift",
        "PropertyWrapperTests.swift",
        "ReExportsTest.swift",
        "SchemaExcludingTests.swift",
        "SchemaGeneratorTests.swift",
        "TestHelpers.swift",
        "ValidatorTests.swift",
        "ZeroSchemaDecoderTests.swift"
      ],
      "target_dependencies" : [
        "Cast",
        "MLXStructured"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CastMacros",
      "module_type" : "SwiftTarget",
      "name" : "CastMacros",
      "path" : "Sources/CastMacros",
      "product_dependencies" : [
        "SwiftSyntaxMacros",
        "SwiftCompilerPlugin"
      ],
      "product_memberships" : [
        "Cast",
        "CastMacros"
      ],
      "sources" : [
        "CastMacroPlugin.swift",
        "CastableDiagnostic.swift",
        "CastableMacro.swift"
      ],
      "type" : "macro"
    },
    {
      "c99name" : "CastMacroTests",
      "module_type" : "SwiftTarget",
      "name" : "CastMacroTests",
      "path" : "Tests/CastMacroTests",
      "product_dependencies" : [
        "SwiftSyntaxMacrosTestSupport"
      ],
      "sources" : [
        "CastDiagnosticTests.swift",
        "CastMacroTests.swift",
        "PartiallyGeneratedTests.swift"
      ],
      "target_dependencies" : [
        "CastMacros"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Cast",
      "module_type" : "SwiftTarget",
      "name" : "Cast",
      "path" : "Sources/Cast",
      "product_dependencies" : [
        "MLX",
        "MLXNN",
        "MLXLLM",
        "MLXLMCommon",
        "Hub",
        "JSONSchema",
        "Collections"
      ],
      "product_memberships" : [
        "Cast"
      ],
      "sources" : [
        "API/CastConfiguration.swift",
        "API/CastEnum.swift",
        "API/CastError.swift",
        "API/CastModel+Extract.swift",
        "API/CastModel+GPUSafety.swift",
        "API/CastModel+Generation.swift",
        "API/CastModel+Lifecycle.swift",
        "API/CastModel+Stream.swift",
        "API/CastModel+Timeout.swift",
        "API/CastModel.swift",
        "API/Castable.swift",
        "API/GrammarProcessorCache.swift",
        "API/ModelSource.swift",
        "API/PartialResult.swift",
        "API/PropertyWrappers.swift",
        "Bench/CastBench.swift",
        "Bench/Formatters.swift",
        "Bench/Instrumentation.swift",
        "Cast.swift",
        "Prompt/PromptEngine.swift",
        "Schema/JSONRepair.swift",
        "Schema/JSONSchema+Excluding.swift",
        "Schema/SchemaGenerator.swift",
        "Schema/ValidatorSupport.swift",
        "Schema/ZeroSchemaDecoder.swift"
      ],
      "target_dependencies" : [
        "CastMacros",
        "MLXStructured"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CMLXStructured",
      "module_type" : "ClangTarget",
      "name" : "CMLXStructured",
      "path" : "Sources/CMLXStructured",
      "product_memberships" : [
        "Cast"
      ],
      "sources" : [
        "error_handler.cpp",
        "grammar_compiler.cpp",
        "grammar_matcher.cpp",
        "tokenizer_info.cpp",
        "xgrammar/cpp/compiled_grammar.cc",
        "xgrammar/cpp/config.cc",
        "xgrammar/cpp/earley_parser.cc",
        "xgrammar/cpp/fsm.cc",
        "xgrammar/cpp/fsm_builder.cc",
        "xgrammar/cpp/grammar.cc",
        "xgrammar/cpp/grammar_builder.cc",
        "xgrammar/cpp/grammar_compiler.cc",
        "xgrammar/cpp/grammar_functor.cc",
        "xgrammar/cpp/grammar_matcher.cc",
        "xgrammar/cpp/grammar_parser.cc",
        "xgrammar/cpp/grammar_printer.cc",
        "xgrammar/cpp/json_schema_converter.cc",
        "xgrammar/cpp/json_schema_converter_ext.cc",
        "xgrammar/cpp/regex_converter.cc",
        "xgrammar/cpp/structural_tag.cc",
        "xgrammar/cpp/support/logging.cc",
        "xgrammar/cpp/support/recursion_guard.cc",
        "xgrammar/cpp/testing.cc",
        "xgrammar/cpp/tokenizer_info.cc"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/CMLXStructured/xgrammar/cpp/nanobind': File not found.
Done.