The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Cast, reference stage (9c5ac3), with Swift 6.3 for macOS (SPM) on 1 May 2026 18:23:50 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

[1451/1707] Compiling fft.cpp
[1452/1707] Compiling error.cpp
[1453/1707] Compiling export.cpp
[1454/1707] Compiling version.cpp
[1455/1707] Compiling fast.cpp
[1456/1707] Compiling cuda.cpp
[1457/1707] Compiling device.cpp
[1458/1707] Compiling format.cc
[1459/1707] Compiling compile.cpp
[1460/1707] Compiling binary.cpp
[1461/1707] Compiling closure.cpp
[1462/1707] Compiling Cmlx.m
[1463/1707] Compiling utils.cpp
[1464/1707] Compiling array.cpp
[1465/1707] Compiling scheduler.cpp
[1466/1743] Compiling no_gguf.cpp
[1467/1743] Compiling linalg.cpp
[1468/1743] Compiling transforms.cpp
[1469/1743] Compiling random.cpp
[1470/1743] Compiling load.cpp
[1471/1743] Compiling graph_utils.cpp
[1472/1743] Compiling fft.cpp
[1473/1743] Compiling primitives.cpp
[1474/1743] Compiling dtype_utils.cpp
[1475/1743] Compiling dtype.cpp
[1476/1743] Compiling safetensors.cpp
[1477/1743] Compiling einsum.cpp
[1478/1743] Compiling fast.cpp
[1479/1743] Compiling utils.cpp
[1480/1743] Compiling no_ring.cpp
[1481/1743] Compiling no_nccl.cpp
[1483/1743] Compiling MLX Random.swift
[1484/1743] Compiling MLX State.swift
[1485/1743] Compiling MLX Stream.swift
[1486/1743] Compiling MLX Transforms+Compile.swift
[1486/1746] Compiling primitives.cpp
[1487/1746] Compiling device.cpp
[1489/1746] Compiling MLX ErrorHandler.swift
[1490/1746] Compiling MLX Export.swift
[1491/1746] Compiling MLX FFT.swift
[1492/1746] Compiling MLX Factory.swift
[1493/1746] Compiling MLX Transforms+Eval.swift
[1494/1746] Compiling MLX Transforms+Grad.swift
[1495/1746] Compiling MLX Transforms+Internal.swift
[1496/1746] Compiling MLX MLXFast.swift
[1497/1746] Compiling MLX MLXFastKernel.swift
[1498/1746] Compiling MLX Memory.swift
[1499/1746] Compiling MLX Nested.swift
[1500/1746] Compiling MLX ArrayAt.swift
[1501/1746] Compiling MLX Cmlx+Util.swift
[1502/1746] Compiling MLX DType.swift
[1503/1746] Compiling MLX Device.swift
[1504/1746] Emitting module MLX
[1504/1746] Compiling ops.cpp
[1506/1746] Compiling no_jaccl.cpp
[1507/1746] Compiling no_mpi.cpp
[1509/1746] Compiling MLX Foundation+Util.swift
[1510/1746] Compiling MLX GPU+Metal.swift
[1511/1746] Compiling MLX IO.swift
[1512/1746] Compiling MLX Linalg.swift
[1512/1746] Compiling distributed.cpp
[1514/1746] Compiling MLX MLXArray+Normalizer.swift
[1515/1746] Compiling MLX MLXArray+Ops.swift
[1516/1746] Compiling MLX MLXArray.swift
[1517/1746] Compiling MLX MLXCustomFunction.swift
[1518/1746] Compiling MLX Ops+Array.swift
[1519/1746] Compiling MLX Ops.swift
[1520/1746] Compiling MLX ParameterTypes.swift
[1521/1746] Compiling MLX Protocols.swift
[1522/1746] Compiling MLX Transforms+Vmap.swift
[1523/1746] Compiling MLX Transforms.swift
[1524/1746] Compiling MLX WiredMemory.swift
[1525/1746] Compiling MLX MLXArray+Bytes.swift
[1526/1746] Compiling MLX MLXArray+Indexing.swift
[1527/1746] Compiling MLX MLXArray+Init.swift
[1528/1746] Compiling MLX MLXArray+Metal.swift
[1528/1746] Compiling utils.cpp
[1529/1764] Compiling unary.cpp
[1530/1764] Compiling compile.cpp
[1531/1764] Compiling ternary.cpp
[1532/1764] Compiling sort.cpp
[1533/1764] Compiling softmax.cpp
[1534/1764] Compiling slicing.cpp
[1535/1764] Compiling scan.cpp
[1537/1764] Compiling MLXNN Recurrent.swift
[1538/1764] Compiling MLXNN Transformer.swift
[1539/1764] Compiling MLXNN Upsample.swift
[1540/1764] Compiling MLXNN PositionalEncoding.swift
[1541/1764] Compiling MLXNN Quantized.swift
[1542/1764] Compiling MLXNN Normalization.swift
[1543/1764] Compiling MLXNN Pooling.swift
[1544/1765] Compiling MLXNN ValueAndGrad.swift
[1545/1765] Compiling MLXNN Embedding.swift
[1546/1765] Compiling MLXNN Linear.swift
[1547/1765] Compiling MLXNN Containers.swift
[1548/1765] Compiling MLXNN Convolution.swift
[1549/1765] Compiling MLXNN ConvolutionTransposed.swift
[1550/1765] Compiling MLXNN Dropout.swift
[1551/1765] Compiling MLXNN Activations.swift
[1552/1765] Compiling MLXNN Cache.swift
[1553/1765] Emitting module MLXNN
[1554/1765] Compiling MLXNN Losses.swift
[1555/1765] Compiling MLXNN Module.swift
[1555/1765] Compiling scaled_dot_product_attention.cpp
[1556/1767] Compiling resident.cpp
[1557/1767] Compiling export.cpp
[1558/1767] Compiling rope.cpp
[1560/1767] Emitting module MLXOptimizers
[1561/1767] Compiling MLXOptimizers Optimizers.swift
[1561/1767] Compiling metal.cpp
[1562/1767] Compiling primitives.cpp
[1563/1767] Compiling reduce.cpp
[1564/1767] Compiling quantized.cpp
[1565/1767] Compiling normalization.cpp
[1566/1767] Compiling matmul.cpp
[1567/1767] Compiling logsumexp.cpp
[1568/1767] Compiling event.cpp
[1569/1767] Compiling fence.cpp
[1570/1767] Compiling jit_kernels.cpp
[1571/1767] Compiling hadamard.cpp
[1572/1767] Compiling indexing.cpp
[1573/1767] Compiling distributed.cpp
[1574/1767] Compiling eval.cpp
[1575/1767] Compiling device_info.cpp
[1576/1767] Compiling fft.cpp
[1577/1767] Compiling slicing.cpp
[1578/1767] Compiling copy.cpp
[1579/1767] Compiling allocator.cpp
[1580/1767] Compiling threefry.cpp
[1581/1767] Compiling conv.cpp
[1582/1767] Compiling primitives.cpp
[1582/1767] Compiling device.cpp
[1584/1767] Compiling compiled.cpp
[1585/1767] Compiling binary.cpp
[1586/1767] Compiling no_cuda.cpp
[1587/1767] Compiling copy.cpp
[1588/1767] Compiling custom_kernel.cpp
[1589/1767] Compiling select.cpp
[1590/1767] Compiling softmax.cpp
[1591/1767] Compiling scan.cpp
[1592/1767] Compiling svd.cpp
[1593/1767] Compiling quantized.cpp
[1594/1767] Compiling primitives.cpp
[1595/1767] Compiling qrf.cpp
[1596/1767] Compiling sort.cpp
[1597/1767] Compiling unary.cpp
[1598/1767] Compiling reduce.cpp
[1599/1767] Compiling jit_compiler.cpp
[1600/1767] Compiling matmul.cpp
[1601/1767] Compiling logsumexp.cpp
[1602/1767] Compiling masked_mm.cpp
[1603/1767] Compiling hadamard.cpp
[1604/1767] Compiling luf.cpp
[1605/1767] Compiling inverse.cpp
[1606/1767] Compiling cblas.cpp
[1607/1767] Compiling bnns.cpp
[1608/1767] Compiling encoder.cpp
[1609/1767] Compiling fft.cpp
[1610/1767] Compiling eval.cpp
[1611/1767] Compiling device_info.cpp
[1612/1767] Compiling distributed.cpp
[1613/1767] Compiling indexing.cpp
[1614/1767] Compiling utils.cpp
[1615/1767] Compiling arg_reduce.cpp
[1616/1767] Compiling eigh.cpp
[1617/1767] Compiling slicing.cpp
[1618/1767] Compiling eig.cpp
[1619/1767] Compiling reduce.cpp
[1620/1767] Compiling utils.cpp
[1621/1767] Compiling unary_ops.cpp
[1622/1767] Compiling unary.cpp
[1623/1767] Compiling ternary_ops.cpp
[1624/1767] Compiling ternary.cpp
[1625/1767] Compiling steel_gemm_splitk_nax.cpp
[1626/1767] Compiling steel_gemm_splitk.cpp
[1627/1767] Compiling steel_gemm_segmented.cpp
[1628/1767] Compiling steel_gemm_masked.cpp
[1629/1767] Compiling cholesky.cpp
[1630/1767] Compiling steel_gemm_gather_nax.cpp
[1631/1767] Compiling steel_gemm_gather.cpp
[1632/1767] Compiling steel_gemm_fused_nax.cpp
[1633/1767] Compiling steel_gemm_fused.cpp
[1634/1767] Compiling steel_conv_general.cpp
[1635/1767] Compiling steel_conv_3d.cpp
[1636/1767] Compiling steel_conv.cpp
[1637/1767] Compiling steel_attention_nax.cpp
[1638/1767] Compiling steel_attention.cpp
[1639/1767] Compiling sort.cpp
[1640/1767] Compiling softmax.cpp
[1641/1767] Compiling scatter_axis.cpp
[1642/1767] Compiling scatter.cpp
[1643/1767] Compiling scan.cpp
[1644/1767] Compiling load.cpp
[1645/1767] Compiling reduce_utils.cpp
[1646/1767] Compiling reduce.cpp
[1647/1767] Compiling quantized_utils.cpp
[1648/1767] Compiling conv.cpp
[1649/1767] Compiling quantized_nax.cpp
[1650/1767] Compiling masked_scatter.cpp
[1651/1767] Compiling logsumexp.cpp
[1652/1767] Compiling quantized.cpp
[1653/1767] Compiling hadamard.cpp
[1654/1767] Compiling gemm_nax.cpp
[1655/1767] Compiling gemm.cpp
[1656/1767] Compiling gemv_masked.cpp
[1657/1767] Compiling gather_front.cpp
[1658/1767] Compiling gather_axis.cpp
[1659/1767] Compiling fp_quantized_nax.cpp
[1660/1767] Compiling gather.cpp
[1661/1767] Compiling fp_quantized.cpp
[1662/1767] Compiling broadcasting.cpp
[1663/1767] Compiling fft.cpp
[1664/1767] Compiling conv.cpp
[1665/1767] Compiling copy.cpp
[1666/1767] Compiling compiled_preamble.cpp
[1667/1767] Compiling binary_two.cpp
[1668/1767] Compiling binary_ops.cpp
[1669/1767] Compiling arange.cpp
[1670/1767] Compiling binary.cpp
[1671/1767] Compiling compiled.cpp
[1672/1767] Compiling common.cpp
[1673/1767] Compiling array.cpp
[1674/1767] Compiling copy.cpp
[1675/1767] Compiling version.cpp
[1676/1767] Compiling transforms_impl.cpp
[1677/1767] Compiling transforms.cpp
[1678/1767] Compiling string.cpp
[1679/1767] Compiling vector.cpp
[1680/1767] Compiling stream.cpp
[1681/1767] Compiling random.cpp
[1682/1767] Compiling compiled_conditional.cpp
[1683/1767] Compiling ops.cpp
[1684/1767] Compiling metal.cpp
[1685/1767] Compiling memory.cpp
[1686/1767] Compiling map.cpp
[1687/1767] Compiling linalg.cpp
[1688/1767] Compiling io_types.cpp
[1689/1767] Compiling io.cpp
[1690/1767] Compiling error.cpp
[1691/1767] Compiling Cmlx.m
[1692/1767] Compiling fft.cpp
[1693/1767] Write sources
[1695/1771] Compiling fast.cpp
[1695/1771] Write sources
[1697/1771] Compiling export.cpp
[1698/1771] Compiling CNIOWindows shim.c
[1700/1771] Compiling CNIOWindows WSAStartup.c
[1702/1771] Compiling CNIOWASI CNIOWASI.c
[1704/1771] Compiling CNIOOpenBSD shim.c
[1706/1771] Compiling CNIOLinux shim.c
[1707/1771] Compiling CNIOLinux liburing_shims.c
[1708/1771] Compiling CNIOLinux shim.c
[1709/1771] Compiling CNIOLinux liburing_shims.c
[1710/1771] Compiling CNIODarwin shim.c
[1712/1771] Compiling cuda.cpp
[1713/1771] Compiling device.cpp
[1714/1771] Compiling compile.cpp
[1715/1771] Compiling format.cc
[1716/1771] Compiling binary.cpp
[1717/1771] Compiling closure.cpp
[1718/1771] Compiling array.cpp
[1719/1771] Compiling logging.cc
[1720/1771] Compiling recursion_guard.cc
[1721/1807] Compiling testing.cc
[1723/1807] Compiling MLX Transforms+Eval.swift
[1724/1807] Compiling MLX Transforms+Grad.swift
[1725/1807] Compiling MLX Transforms+Internal.swift
[1725/1810] Compiling tokenizer_info.cc
[1727/1810] Compiling MLX Random.swift
[1728/1810] Compiling MLX State.swift
[1729/1810] Compiling MLX Stream.swift
[1730/1810] Compiling MLX Transforms+Compile.swift
[1731/1810] Compiling CastMacros CastableMacro.swift
[1732/1810] Emitting module CastMacros
[1733/1810] Compiling CastMacros CastableDiagnostic.swift
[1734/1810] Compiling CastMacros CastMacroPlugin.swift
[1734/1810] Compiling regex_converter.cc
[1735/1810] Write Objects.LinkFileList
[1737/1810] Compiling MLX ArrayAt.swift
[1738/1810] Compiling MLX Cmlx+Util.swift
[1739/1810] Compiling MLX DType.swift
[1740/1810] Compiling MLX Device.swift
[1741/1810] Emitting module MLX
[1742/1810] Compiling MLX Transforms+Vmap.swift
[1743/1810] Compiling MLX Transforms.swift
[1744/1810] Compiling MLX WiredMemory.swift
[1745/1810] Compiling MLX MLXFast.swift
[1746/1810] Compiling MLX MLXFastKernel.swift
[1747/1810] Compiling MLX Memory.swift
[1748/1810] Compiling MLX Nested.swift
[1749/1810] Compiling MLX MLXArray+Normalizer.swift
[1750/1810] Compiling MLX MLXArray+Ops.swift
[1751/1810] Compiling MLX MLXArray.swift
[1752/1810] Compiling MLX MLXCustomFunction.swift
[1753/1810] Compiling MLX Ops+Array.swift
[1754/1810] Compiling MLX Ops.swift
[1755/1810] Compiling MLX ParameterTypes.swift
[1756/1810] Compiling MLX Protocols.swift
[1756/1810] Compiling json_schema_converter_ext.cc
[1757/1810] Compiling grammar_printer.cc
[1759/1810] Compiling MLX Foundation+Util.swift
[1760/1810] Compiling MLX GPU+Metal.swift
[1761/1810] Compiling MLX IO.swift
[1762/1810] Compiling MLX Linalg.swift
[1763/1810] Compiling MLX MLXArray+Bytes.swift
[1764/1810] Compiling MLX MLXArray+Indexing.swift
[1765/1810] Compiling MLX MLXArray+Init.swift
[1766/1810] Compiling MLX MLXArray+Metal.swift
[1767/1810] Compiling MLX ErrorHandler.swift
[1768/1810] Compiling MLX Export.swift
[1769/1810] Compiling MLX FFT.swift
[1770/1810] Compiling MLX Factory.swift
[1770/1810] Compiling grammar_parser.cc
[1771/1828] Linking CastMacros-tool
[1772/1828] Compiling json_schema_converter.cc
[1774/1828] Compiling MLXNN Recurrent.swift
[1775/1828] Compiling MLXNN Transformer.swift
[1776/1828] Compiling MLXNN PositionalEncoding.swift
[1777/1828] Compiling MLXNN Quantized.swift
[1778/1828] Compiling MLXNN Upsample.swift
[1779/1828] Compiling MLXNN Normalization.swift
[1780/1828] Compiling MLXNN Pooling.swift
[1780/1829] Compiling c-nioatomics.c
[1782/1829] Compiling MLXNN ValueAndGrad.swift
[1783/1829] Compiling MLXNN Embedding.swift
[1784/1829] Compiling MLXNN Linear.swift
[1785/1829] Compiling MLXNN ConvolutionTransposed.swift
[1786/1829] Compiling MLXNN Dropout.swift
[1787/1829] Compiling MLXNN Containers.swift
[1788/1829] Compiling MLXNN Convolution.swift
[1789/1829] Emitting module MLXNN
[1790/1829] Compiling MLXNN Activations.swift
[1791/1829] Compiling MLXNN Cache.swift
[1792/1829] Compiling MLXNN Losses.swift
[1793/1829] Compiling MLXNN Module.swift
[1793/1829] Compiling c-nioatomics.c
[1795/1831] Emitting module MLXOptimizers
[1796/1831] Compiling MLXOptimizers Optimizers.swift
[1796/1831] Compiling grammar_matcher.cc
[1797/1831] Compiling structural_tag.cc
[1798/1831] Compiling grammar_builder.cc
[1799/1831] Compiling c-atomics.c
[1801/1838] Compiling grammar_functor.cc
[1802/1845] Compiling fsm_builder.cc
[1804/1845] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[1805/1845] Compiling NIOConcurrencyHelpers lock.swift
[1806/1845] Compiling NIOConcurrencyHelpers NIOLock.swift
[1807/1845] Emitting module NIOConcurrencyHelpers
[1808/1845] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[1809/1845] Compiling NIOConcurrencyHelpers atomics.swift
[1810/1845] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[1812/1845] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[1813/1845] Compiling NIOConcurrencyHelpers NIOLock.swift
[1814/1845] Compiling NIOConcurrencyHelpers atomics.swift
[1815/1845] Emitting module NIOConcurrencyHelpers
[1816/1845] Compiling NIOConcurrencyHelpers lock.swift
[1817/1845] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[1817/1845] Compiling recursion_guard.cc
[1818/1845] Compiling grammar_compiler.cc
[1819/1845] Compiling logging.cc
[1819/1845] Compiling grammar.cc
[1821/1845] Compiling testing.cc
[1822/1845] Compiling earley_parser.cc
[1823/1845] Compiling tokenizer_info.cc
[1824/1845] Compiling regex_converter.cc
[1825/1845] Compiling fsm.cc
[1826/1845] Compiling json_schema_converter_ext.cc
[1827/1845] Compiling grammar_printer.cc
[1828/1845] Compiling grammar_parser.cc
[1829/1845] Compiling grammar_builder.cc
[1830/1845] Compiling grammar_matcher.cc
[1831/1845] Compiling CMLXStructured error_handler.cpp
[1832/1845] Write sources
[1834/1845] Compiling json_schema_converter.cc
[1835/1845] Compiling CMLXStructured grammar_compiler.cpp
[1836/1845] Write sources
[1838/1900] Compiling fsm_builder.cc
[1840/1993] Compiling Atomics ManagedAtomicLazyReference.swift
[1841/1993] Compiling Atomics UnsafeAtomic.swift
[1842/1993] Compiling Atomics PointerConformances.swift
[1843/1993] Compiling Atomics Primitives.native.swift
[1844/1993] Compiling Atomics DoubleWord.swift
[1845/1993] Compiling Atomics ManagedAtomic.swift
[1846/1994] Compiling BitCollections BitSet+SetAlgebra conformance.swift
[1847/1994] Compiling BitCollections BitSet+SetAlgebra formIntersection.swift
[1848/1994] Compiling BitCollections BitSet+SetAlgebra formSymmetricDifference.swift
[1849/1994] Compiling BitCollections BitSet+SetAlgebra formUnion.swift
[1850/1994] Compiling BitCollections BitSet+SetAlgebra intersection.swift
[1851/1994] Compiling BitCollections BitSet+SetAlgebra isDisjoint.swift
[1854/1994] Compiling Atomics UnsafeAtomicLazyReference.swift
[1855/1994] Compiling Atomics IntegerOperations.swift
[1856/2001] Compiling Atomics Unmanaged extensions.swift
[1860/2001] Compiling BitCollections BitSet+SetAlgebra subtracting.swift
[1861/2001] Compiling BitCollections BitSet+SetAlgebra symmetricDifference.swift
[1863/2001] Compiling BitCollections BitSet+SetAlgebra union.swift
[1865/2001] Compiling BitCollections BitSet+Sorted Collection APIs.swift
[1866/2001] Compiling BitCollections BitSet.Counted.swift
[1868/2001] Compiling BitCollections BitSet.Index.swift
[1872/2007] Compiling BitCollections BitSet+SetAlgebra isEqualSet.swift
[1873/2007] Compiling BitCollections BitSet+SetAlgebra isStrictSubset.swift
[1874/2007] Compiling BitCollections BitSet+SetAlgebra isStrictSuperset.swift
[1875/2007] Compiling BitCollections BitSet+SetAlgebra isSubset.swift
[1876/2007] Compiling BitCollections BitSet+SetAlgebra isSuperset.swift
[1877/2007] Compiling BitCollections BitSet+SetAlgebra subtract.swift
[1878/2007] Compiling BitCollections BitSet+Codable.swift
[1879/2007] Compiling BitCollections BitSet+CustomDebugStringConvertible.swift
[1880/2007] Compiling BitCollections BitSet+CustomReflectable.swift
[1881/2007] Compiling BitCollections BitSet+CustomStringConvertible.swift
[1882/2007] Compiling BitCollections BitSet+Equatable.swift
[1883/2007] Compiling BitCollections BitSet+ExpressibleByArrayLiteral.swift
[1884/2007] Compiling BitCollections BitSet+Extras.swift
[1885/2007] Compiling BitCollections BitSet+Hashable.swift
[1886/2007] Compiling BitCollections BitSet+Initializers.swift
[1887/2007] Compiling BitCollections BitSet+Invariants.swift
[1888/2007] Compiling BitCollections BitSet+Random.swift
[1889/2007] Compiling BitCollections BitSet+SetAlgebra basics.swift
[1914/2007] Compiling Atomics AtomicValue.swift
[1915/2007] Compiling Atomics AtomicMemoryOrderings.swift
[1916/2007] Compiling Atomics AtomicInteger.swift
[1917/2007] Compiling Atomics AtomicOptionalWrappable.swift
[1917/2007] Compiling grammar_functor.cc
[1918/2007] Compiling grammar_compiler.cc
[1920/2007] Emitting module BitCollections
[1921/2007] Compiling Atomics AtomicBool.swift
[1922/2007] Compiling Atomics IntegerConformances.swift
[1923/2007] Compiling Atomics OptionalRawRepresentable.swift
[1924/2007] Compiling Atomics RawRepresentable.swift
[1933/2007] Compiling Atomics AtomicReference.swift
[1934/2007] Compiling Atomics AtomicStorage.swift
[1939/2007] Compiling BitCollections BitSet._UnsafeHandle.swift
[1940/2007] Compiling BitCollections BitSet.swift
[1941/2007] Compiling BitCollections Range+Utilities.swift
[1942/2007] Compiling BitCollections Slice+Utilities.swift
[1943/2007] Compiling BitCollections UInt+Tricks.swift
[1944/2007] Compiling BitCollections _Word.swift
[1957/2007] Compiling BitCollections BitArray+RangeReplaceableCollection.swift
[1958/2007] Compiling BitCollections BitArray+Shifts.swift
[1959/2007] Compiling BitCollections BitArray+Testing.swift
[1960/2007] Compiling BitCollections BitArray._UnsafeHandle.swift
[1961/2007] Compiling BitCollections BitArray.swift
[1962/2007] Compiling BitCollections BitSet+BidirectionalCollection.swift
[1963/2007] Emitting module BitCollections
[1975/2007] Compiling grammar.cc
[2003/2013] Emitting module Atomics
[2004/2013] Compiling Collections OrderedCollections reexports.swift
[2005/2013] Compiling Collections HeapModule reexports.swift
[2006/2013] Compiling Collections HashTreeCollections reexports.swift
[2007/2013] Compiling Collections DequeModule reexports.swift
[2008/2013] Emitting module Collections
[2009/2013] Compiling Collections BitCollections reexports.swift
[2010/2013] Emitting module Atomics
[2010/2013] Compiling earley_parser.cc
[2012/2019] Compiling Collections OrderedCollections reexports.swift
[2013/2019] Compiling Collections HashTreeCollections reexports.swift
[2014/2019] Compiling Collections DequeModule reexports.swift
[2015/2019] Emitting module Collections
[2016/2019] Compiling Collections HeapModule reexports.swift
[2017/2019] Compiling Collections BitCollections reexports.swift
[2017/2169] Compiling fsm.cc
[2018/2169] Compiling structural_tag.cc
[2020/2169] Compiling NIOCore ChannelHandler.swift
[2021/2169] Compiling NIOCore ChannelHandlers.swift
[2022/2169] Compiling NIOCore ChannelInvoker.swift
[2023/2169] Compiling NIOCore ChannelOption.swift
[2024/2169] Compiling NIOCore ChannelPipeline.swift
[2025/2169] Compiling NIOCore CircularBuffer.swift
[2026/2169] Compiling NIOCore Codec.swift
[2027/2169] Compiling NIOCore EventLoopFuture+Deprecated.swift
[2028/2169] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[2029/2169] Compiling NIOCore EventLoopFuture.swift
[2030/2169] Compiling NIOCore FileDescriptor.swift
[2031/2169] Compiling NIOCore FileHandle.swift
[2032/2169] Compiling NIOCore FileRegion.swift
[2033/2169] Compiling NIOCore GlobalSingletons.swift
[2034/2176] Compiling NIOCore IO.swift
[2035/2176] Compiling NIOCore IOData.swift
[2036/2176] Compiling NIOCore IPProtocol.swift
[2037/2176] Compiling NIOCore IntegerBitPacking.swift
[2038/2176] Compiling NIOCore IntegerTypes.swift
[2039/2176] Compiling NIOCore Interfaces.swift
[2040/2176] Compiling NIOCore Linux.swift
[2041/2183] Compiling NIOCore NIOLoopBound.swift
[2042/2183] Compiling NIOCore NIOAsyncWriter.swift
[2043/2183] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[2044/2183] Compiling NIOCore BSDSocketAPI.swift
[2045/2183] Compiling NIOCore ByteBuffer-aux.swift
[2046/2183] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[2047/2183] Compiling NIOCore ByteBuffer-conversions.swift
[2048/2183] Compiling NIOCore ByteBuffer-core.swift
[2049/2183] Compiling NIOCore AddressedEnvelope.swift
[2050/2183] Compiling NIOCore AsyncAwaitSupport.swift
[2051/2183] Compiling NIOCore AsyncChannel.swift
[2052/2183] Compiling NIOCore AsyncChannelHandler.swift
[2053/2183] Compiling NIOCore AsyncChannelInboundStream.swift
[2054/2183] Compiling NIOCore AsyncChannelOutboundWriter.swift
[2055/2183] Compiling NIOCore NIOAsyncSequenceProducer.swift
[2056/2183] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[2071/2183] Compiling JSONSchema JSONSchema+ObjectProperties.swift
[2072/2183] Compiling JSONSchema JSONSchema+String.swift
[2073/2184] Compiling JSONSchema JSONSchema+Number.swift
[2074/2184] Compiling JSONSchema JSONSchema+Null.swift
[2075/2184] Compiling JSONSchema JSONSchema+Array.swift
[2076/2184] Compiling JSONSchema JSONSchema+Boolean.swift
[2077/2184] Compiling JSONSchema JSONSchema+Enum.swift
[2078/2184] Compiling JSONSchema JSONSchema+Integer.swift
[2079/2184] Emitting module JSONSchema
[2080/2184] Compiling JSONSchema JSONSchema+Object.swift
[2081/2184] Compiling JSONSchema JSONSchema+Integer.swift
[2082/2184] Compiling JSONSchema JSONSchema+Boolean.swift
[2083/2184] Compiling JSONSchema JSONSchema+Enum.swift
[2084/2184] Compiling JSONSchema JSONSchema+Array.swift
[2085/2184] Compiling JSONSchema JSONSchema+Null.swift
[2086/2184] Emitting module JSONSchema
[2087/2184] Compiling JSONSchema JSONSchema+Number.swift
[2088/2184] Compiling JSONSchema JSONSchema+ObjectProperties.swift
[2089/2184] Compiling JSONSchema JSONSchema+String.swift
[2090/2184] Compiling JSONSchema JSONSchema+Object.swift
[2091/2185] Compiling JSONSchema JSONSchema.swift
[2093/2185] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[2094/2185] Compiling NIOCore MarkedCircularBuffer.swift
[2095/2185] Compiling NIOCore MulticastChannel.swift
[2096/2185] Compiling NIOCore NIOAny.swift
[2097/2185] Compiling NIOCore NIOCloseOnErrorHandler.swift
[2098/2185] Compiling NIOCore NIOCoreSendableMetatype.swift
[2099/2185] Compiling NIOCore NIODecodedAsyncSequence.swift
[2107/2185] Compiling NIOCore SocketAddresses.swift
[2108/2185] Compiling NIOCore SocketOptionProvider.swift
[2109/2185] Compiling NIOCore SystemCallHelpers.swift
[2110/2185] Compiling NIOCore TimeAmount+Duration.swift
[2111/2185] Compiling NIOCore TypeAssistedChannelHandler.swift
[2112/2185] Compiling NIOCore UniversalBootstrapSupport.swift
[2113/2185] Compiling NIOCore Utilities.swift
[2128/2185] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[2129/2185] Compiling NIOCore NIOScheduledCallback.swift
[2130/2185] Compiling NIOCore NIOSendable.swift
[2131/2185] Compiling NIOCore NIOSplitLinesMessageDecoder.swift
[2132/2185] Compiling NIOCore NIOTransportAccessibleChannelCore.swift
[2133/2185] Compiling NIOCore RecvByteBufferAllocator.swift
[2142/2185] Compiling NIOCore ConvenienceOptionSupport.swift
[2143/2185] Compiling NIOCore DeadChannel.swift
[2144/2185] Compiling NIOCore DispatchQueue+WithFuture.swift
[2145/2185] Compiling NIOCore EventLoop+Deprecated.swift
[2146/2185] Compiling NIOCore EventLoop+SerialExecutor.swift
[2147/2185] Compiling NIOCore EventLoop.swift
[2148/2185] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[2157/2185] Compiling NIOCore ByteBuffer-hex.swift
[2158/2185] Compiling NIOCore ByteBuffer-int.swift
[2159/2185] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[2160/2185] Compiling NIOCore ByteBuffer-multi-int.swift
[2161/2185] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[2162/2185] Compiling NIOCore ByteBuffer-views.swift
[2169/2185] Compiling NIOCore Channel.swift
[2170/2185] Emitting module NIOCore
[2186/2195] Compiling EventSource AsyncSequence+Events.swift
[2187/2195] Compiling EventSource EventSource.swift
[2188/2195] Compiling EventSource AsyncEventsSequence.swift
[2189/2195] Compiling EventSource EventSource+AsyncHTTPClient.swift
[2190/2195] Emitting module EventSource
[2191/2195] Compiling EventSource AsyncSequence+Events.swift
[2192/2195] Compiling EventSource AsyncEventsSequence.swift
[2193/2195] Emitting module EventSource
[2194/2195] Compiling EventSource EventSource.swift
[2195/2195] Compiling EventSource EventSource+AsyncHTTPClient.swift
[2196/2295] Compiling HuggingFace HubClient+Discussions.swift
[2197/2295] Compiling HuggingFace ResourceGroup.swift
[2198/2295] Compiling HuggingFace Space.swift
[2199/2295] Compiling HuggingFace Tags.swift
[2200/2295] Compiling HuggingFace User.swift
[2201/2300] Compiling HuggingFace FeatureExtraction.swift
[2202/2300] Compiling HuggingFace InferenceClient.swift
[2203/2300] Compiling HuggingFace Message.swift
[2204/2300] Compiling HuggingFace Provider.swift
[2205/2300] Compiling HuggingFace SpeechToText.swift
[2206/2305] Compiling HuggingFace HubClient+Papers.swift
[2207/2305] Compiling HuggingFace HubClient+Repos.swift
[2208/2305] Compiling HuggingFace HubClient+Spaces.swift
[2209/2305] Compiling HuggingFace HubClient+User.swift
[2210/2305] Compiling HuggingFace HubClient.swift
[2211/2305] Compiling HuggingFace Model.swift
[2212/2305] Compiling HuggingFace AccessRequest.swift
[2213/2305] Compiling HuggingFace Billing.swift
[2214/2305] Compiling HuggingFace Collection.swift
[2215/2305] Compiling HuggingFace CommaSeparatedList.swift
[2216/2305] Compiling HuggingFace Dataset.swift
[2217/2305] Compiling HuggingFace Discussion.swift
[2218/2305] Compiling HuggingFace ChatCompletion.swift
[2223/2305] Compiling HuggingFace Repo.swift
[2224/2305] Compiling HuggingFace CacheLocationProvider.swift
[2225/2305] Compiling HuggingFace Data+Extensions.swift
[2226/2305] Compiling HuggingFace JSONDecoder+Extensions.swift
[2227/2305] Compiling HuggingFace URL+Extensions.swift
[2228/2305] Compiling HuggingFace URLSession+Linux.swift
[2230/2305] Compiling HuggingFace OAuth.swift
[2231/2305] Compiling HuggingFace Organization.swift
[2232/2305] Compiling HuggingFace Pagination.swift
[2233/2305] Compiling HuggingFace Paper.swift
[2234/2305] Compiling HuggingFace HubClient+Files.swift
[2235/2305] Compiling HuggingFace HubClient+Git.swift
[2236/2305] Compiling HuggingFace HubClient+Models.swift
[2237/2305] Compiling HuggingFace HubClient+OAuth.swift
[2238/2305] Compiling HuggingFace HubClient+Organizations.swift
[2239/2305] Compiling HuggingFace File.swift
[2240/2305] Compiling HuggingFace Git.swift
[2241/2305] Compiling HuggingFace HubCache.swift
[2242/2305] Compiling HuggingFace HubClient+Collections.swift
[2243/2305] Compiling HuggingFace HubClient+Datasets.swift
[2250/2305] Compiling HuggingFace FileLock.swift
[2251/2305] Compiling HuggingFace HTTPClient.swift
[2252/2305] Compiling HuggingFace MultipartBuilder.swift
[2253/2305] Compiling HuggingFace TokenProvider.swift
[2254/2305] Compiling HuggingFace Value.swift
[2255/2305] Emitting module HuggingFace
[2273/2305] Compiling HuggingFace HubClient+Pagination.swift
[2286/2305] Compiling HuggingFace TextToImage.swift
[2290/2305] Compiling HuggingFace TextToVideo.swift
[2291/2305] Compiling HuggingFace HuggingFaceAuthenticationManager.swift
[2293/2305] Compiling HuggingFace OAuthClient.swift
[2295/2305] Compiling HuggingFace TokenStorage.swift
[2306/2319] Compiling Hub YYJSONParser.swift
[2307/2319] Compiling Hub resource_bundle_accessor.swift
[2308/2319] Compiling Hub Config.swift
[2309/2319] Compiling Hub BinaryDistinct.swift
[2310/2319] Emitting module Hub
[2311/2319] Compiling Hub Hub.swift
[2312/2319] Compiling Hub HubApi.swift
[2313/2319] Compiling Hub Hub.swift
[2314/2319] Compiling Hub BinaryDistinct.swift
[2315/2319] Emitting module Hub
[2316/2319] Compiling Hub HubApi.swift
[2317/2319] Compiling Hub Config.swift
[2318/2319] Compiling Hub YYJSONParser.swift
[2319/2319] Compiling Hub resource_bundle_accessor.swift
[2320/2343] Compiling Tokenizers Trie.swift
[2321/2344] Compiling Tokenizers String+PreTokenization.swift
[2322/2344] Compiling Tokenizers PreTokenizer.swift
[2323/2344] Compiling Tokenizers PostProcessor.swift
[2324/2344] Compiling Tokenizers Normalizer.swift
[2325/2344] Compiling Tokenizers UnigramTokenizer.swift
[2326/2344] Compiling Tokenizers BPETokenizer.swift
[2327/2344] Compiling Tokenizers BertTokenizer.swift
[2328/2344] Emitting module Tokenizers
[2329/2344] Compiling Tokenizers ByteEncoder.swift
[2330/2344] Compiling Tokenizers Decoder.swift
[2331/2344] Compiling Tokenizers String+PreTokenization.swift
[2332/2344] Compiling Tokenizers PreTokenizer.swift
[2333/2344] Compiling Tokenizers TokenLattice.swift
[2334/2344] Compiling Tokenizers PostProcessor.swift
[2335/2344] Compiling Tokenizers Normalizer.swift
[2340/2344] Emitting module Tokenizers
[2341/2344] Compiling Tokenizers Tokenizer.swift
[2342/2344] Compiling Tokenizers Trie.swift
[2343/2345] Compiling Tokenizers TokenLattice.swift
[2344/2345] Compiling Tokenizers Tokenizer.swift
[2345/2355] Compiling Tokenizers UnigramTokenizer.swift
[2346/2365] Compiling Generation TopPLogitsWarper.swift
[2347/2365] Compiling Generation GenerationConfig.swift
[2348/2365] Compiling Generation TopKLogitsWarper.swift
[2349/2365] Compiling Generation TopPLogitsWarper.swift
[2350/2365] Compiling Generation TemperatureLogitsWarper.swift
[2351/2365] Compiling Generation RepetitionPenaltyLogitsProcessor.swift
[2352/2365] Compiling Generation MinPLogitsWarper.swift
[2353/2365] Compiling Generation TopKLogitsWarper.swift
[2354/2365] Compiling Generation LogitsProcessor.swift
[2355/2365] Compiling Generation TemperatureLogitsWarper.swift
[2356/2365] Compiling Generation MinPLogitsWarper.swift
[2357/2365] Compiling Generation GenerationConfig.swift
[2358/2365] Compiling Generation LogitsProcessor.swift
[2359/2365] Compiling Generation RepetitionPenaltyLogitsProcessor.swift
[2360/2365] Compiling Generation Decoders.swift
[2361/2365] Emitting module Generation
[2362/2365] Compiling Generation Generation.swift
[2363/2365] Compiling Generation Decoders.swift
[2364/2365] Emitting module Generation
[2365/2365] Compiling Generation Generation.swift
[2366/2373] Compiling Models LanguageModel.swift
[2367/2373] Compiling Models LanguageModelTypes.swift
[2368/2373] Compiling Models Weights.swift
[2369/2373] Emitting module Models
[2370/2373] Compiling Models Weights.swift
[2371/2373] Compiling Models LanguageModel.swift
[2372/2373] Emitting module Models
[2373/2373] Compiling Models LanguageModelTypes.swift
[2374/2467] Emitting module MLXLMCommon
[2375/2472] Compiling MLXLMCommon Tool.swift
[2376/2472] Compiling MLXLMCommon ToolCall.swift
[2377/2472] Compiling MLXLMCommon ToolCallFormat.swift
[2378/2472] Compiling MLXLMCommon ToolCallProcessor.swift
[2379/2472] Compiling MLXLMCommon ToolParameter.swift
[2380/2477] Compiling MLXLMCommon DoRA+Layers.swift
[2381/2477] Compiling MLXLMCommon LoRA+Layers.swift
[2382/2477] Compiling MLXLMCommon LoRAContainer.swift
[2383/2477] Compiling MLXLMCommon LoRAModel.swift
[2384/2477] Compiling MLXLMCommon ModelAdapter.swift
[2385/2477] Compiling MLXLMCommon ModelAdapterTypeRegistry.swift
[2386/2477] Compiling MLXLMCommon AttentionUtils.swift
[2387/2477] Compiling MLXLMCommon BaseConfiguration.swift
[2388/2477] Compiling MLXLMCommon Chat.swift
[2389/2477] Compiling MLXLMCommon ChatSession.swift
[2390/2477] Emitting module MLXLMCommon
[2391/2477] Compiling MLXLMCommon ModelContainer.swift
[2392/2477] Compiling MLXLMCommon ModelFactory.swift
[2393/2477] Compiling MLXLMCommon Gemma.swift
[2394/2477] Compiling MLXLMCommon Module+Extensions.swift
[2395/2477] Compiling MLXLMCommon AbstractModelRegistry.swift
[2396/2477] Compiling MLXLMCommon MiniMaxM2ToolCallParser.swift
[2397/2477] Compiling MLXLMCommon MistralToolCallParser.swift
[2398/2477] Compiling MLXLMCommon ParserUtilities.swift
[2399/2477] Compiling MLXLMCommon PythonicToolCallParser.swift
[2400/2477] Compiling MLXLMCommon XMLFunctionParser.swift
[2401/2477] Compiling MLXLMCommon Tokenizer.swift
[2402/2477] Compiling MLXLMCommon GLM4ToolCallParser.swift
[2403/2477] Compiling MLXLMCommon GemmaFunctionParser.swift
[2404/2477] Compiling MLXLMCommon JSONToolCallParser.swift
[2405/2477] Compiling MLXLMCommon KimiK2ToolCallParser.swift
[2406/2477] Compiling MLXLMCommon ModelAdapterFactory.swift
[2407/2477] Compiling MLXLMCommon Evaluate.swift
[2408/2477] Compiling MLXLMCommon Encodable+toolResult.swift
[2409/2477] Compiling MLXLMCommon JSONDecoder+JSON5.swift
[2410/2477] Compiling MLXLMCommon ModelAdapter.swift
[2411/2477] Compiling MLXLMCommon ModelAdapterFactory.swift
[2438/2477] Compiling MLXLMCommon ModelTypeRegistry.swift
[2439/2477] Compiling MLXLMCommon ProcessorTypeRegistry.swift
[2440/2477] Compiling MLXLMCommon RoPEUtils.swift
[2441/2477] Compiling MLXLMCommon SuScaledRoPE.swift
[2442/2477] Compiling MLXLMCommon SwitchLayers.swift
[2443/2477] Compiling MLXLMCommon MiniMaxM2ToolCallParser.swift
[2444/2477] Compiling MLXLMCommon MistralToolCallParser.swift
[2445/2477] Compiling MLXLMCommon ParserUtilities.swift
[2446/2477] Compiling MLXLMCommon PythonicToolCallParser.swift
[2447/2477] Compiling MLXLMCommon XMLFunctionParser.swift
[2468/2477] Compiling MLXLMCommon Value.swift
[2470/2477] Compiling MLXLMCommon UserInput.swift
[2472/2477] Compiling MLXLMCommon SerialAccessContainer.swift
[2474/2477] Compiling MLXLMCommon WiredMemoryPolicies.swift
[2476/2477] Compiling MLXLMCommon WiredMemoryUtils.swift
[2478/2603] Compiling MLXStructured Grammar+Structural.swift
[2479/2604] Compiling MLXStructured StructuralTag+Builder.swift
[2480/2604] Compiling MLXStructured GrammarMatcher.swift
[2481/2604] Compiling MLXStructured GrammarMaskedLogitProcessor.swift
[2482/2604] Compiling MLXStructured Grammar.swift
[2483/2604] Compiling MLXStructured GrammarMatcherFactory.swift
[2484/2604] Compiling MLXStructured StructuralTag+Builder.swift
[2485/2604] Compiling MLXStructured Grammar.swift
[2486/2604] Compiling MLXStructured GrammarMatcherFactory.swift
[2487/2604] Compiling MLXStructured GrammarMaskedLogitProcessor.swift
[2488/2604] Compiling MLXStructured GrammarMatcher.swift
[2489/2605] Compiling MLXStructured Grammar+Structural.swift
[2490/2605] Compiling MLXLLM AfMoE.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>
[2491/2605] Compiling MLXLLM Apertus.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>
[2494/2605] Compiling MLXLLM LLMModel.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>
[2495/2605] Compiling MLXLLM LLMModelFactory.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>
[2496/2605] Emitting module MLXStructured
[2497/2605] Compiling MLXLLM Lora+Data.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>
[2498/2605] Compiling MLXLLM LoraTrain.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>
[2499/2605] 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>
[2504/2605] Compiling MLXStructured StructuralTag.swift
[2506/2605] Compiling MLXLLM PhiMoE.swift
[2507/2605] Compiling MLXLLM Qwen2.swift
[2508/2605] Compiling MLXLLM Qwen3.swift
[2509/2605] Compiling MLXLLM Qwen35.swift
[2510/2605] Compiling MLXLLM Qwen35MoE.swift
[2516/2615] Emitting module MLXLLM
[2517/2615] Compiling MLXLLM GraniteMoeHybrid.swift
[2518/2615] Compiling MLXLLM Internlm2.swift
[2519/2615] Compiling MLXLLM Jamba.swift
[2520/2615] Compiling MLXLLM LFM2.swift
[2521/2615] Compiling MLXLLM LFM2MoE.swift
[2522/2615] Emitting module MLXLLM
[2529/2615] Compiling MLXLLM Exaone4.swift
[2530/2615] Compiling MLXLLM FalconH1.swift
[2531/2615] Compiling MLXLLM GLM4.swift
[2532/2615] Compiling MLXLLM GLM4MOE.swift
[2533/2615] Compiling MLXLLM GLM4MOELite.swift
[2534/2615] Compiling MLXLLM MiniMax.swift
[2535/2615] Compiling MLXLLM Mistral3Text.swift
[2536/2615] Compiling MLXLLM NanoChat.swift
[2537/2615] Compiling MLXLLM NemotronH.swift
[2538/2615] Compiling MLXLLM Olmo2.swift
[2539/2615] Compiling MLXLLM Lille130m.swift
[2540/2615] Compiling MLXLLM Llama.swift
[2541/2615] Compiling MLXLLM MiMo.swift
[2542/2615] Compiling MLXLLM MiMoV2Flash.swift
[2543/2615] Compiling MLXLLM MiniCPM.swift
[2550/2615] Compiling MLXLLM BaichuanM1.swift
[2551/2615] Compiling MLXLLM BailingMoe.swift
[2552/2615] Compiling MLXLLM Bitnet.swift
[2553/2615] Compiling MLXLLM Cohere.swift
[2554/2615] Compiling MLXLLM DeepseekV3.swift
[2555/2615] Compiling MLXLLM Ernie4_5.swift
[2556/2615] Compiling MLXLLM Olmo3.swift
[2557/2615] Compiling MLXLLM OlmoE.swift
[2558/2615] Compiling MLXLLM OpenELM.swift
[2559/2615] Compiling MLXLLM Phi.swift
[2560/2615] Compiling MLXLLM Phi3.swift
[2571/2615] Compiling MLXLLM GPTOSS.swift
[2588/2615] Compiling MLXLLM GatedDelta.swift
[2589/2615] Compiling MLXLLM Gemma.swift
[2590/2615] Compiling MLXLLM Gemma2.swift
[2591/2615] Compiling MLXLLM Gemma3Text.swift
[2592/2615] Compiling MLXLLM Gemma3nText.swift
[2593/2615] Compiling MLXLLM Granite.swift
[2606/2615] Compiling MLXLLM Qwen3MoE.swift
[2607/2615] Compiling MLXLLM Qwen3Next.swift
[2608/2615] Compiling MLXLLM SSM.swift
[2609/2615] Compiling MLXLLM SmolLM3.swift
[2610/2615] Compiling MLXLLM Starcoder2.swift
[2616/2663] Compiling Cast CastConfiguration.swift
[2617/2663] Compiling Cast CastEnum.swift
[2618/2663] Compiling Cast CastError.swift
[2619/2665] Compiling Cast Instrumentation.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>
[2620/2665] Compiling Cast Cast.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>
[2621/2667] Compiling Cast ModelSource.swift
[2622/2667] Compiling Cast PartialResult.swift
[2623/2667] Compiling Cast CastModel+Lifecycle.swift
[2624/2667] Compiling Cast GrammarProcessorCache.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>
/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>
[2628/2667] 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>
[2629/2667] 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>
[2630/2667] Compiling Cast CastModel+GPUSafety.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>
[2631/2667] 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>
[2632/2667] Compiling Cast CastModel.swift
[2633/2667] Compiling Cast Castable.swift
[2639/2667] Compiling Cast SchemaGenerator.swift
[2640/2667] Compiling Cast CastModel+Extract.swift
[2641/2667] Compiling Cast PropertyWrappers.swift
[2642/2667] Compiling Cast JSONSchema+Excluding.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>
/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>
[2645/2667] Compiling Cast PromptEngine.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/2667] Compiling Cast JSONRepair.swift
[2647/2667] Compiling Cast ModelSource.swift
[2648/2667] Compiling Cast PartialResult.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>
[2662/2667] 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>
[2664/2667] Compiling Cast ValidatorSupport.swift
[2665/2667] Compiling Cast ZeroSchemaDecoder.swift
Build complete! (154.04s)
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.