The Swift Package Index logo.Swift Package Index

Build Information

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

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats

Build Log

[1480/1738] Compiling linalg.cpp
[1481/1758] Compiling load.cpp
[1482/1758] Compiling graph_utils.cpp
[1483/1758] Compiling primitives.cpp
[1484/1758] Compiling fft.cpp
[1485/1758] Compiling transforms.cpp
[1486/1758] Compiling dtype_utils.cpp
[1487/1758] Compiling dtype.cpp
[1488/1758] Compiling safetensors.cpp
[1489/1758] Compiling utils.cpp
[1490/1758] Compiling einsum.cpp
[1491/1758] Compiling no_ring.cpp
[1492/1758] Compiling fast.cpp
[1493/1758] Compiling no_nccl.cpp
[1494/1758] Compiling ops.cpp
[1495/1758] Compiling primitives.cpp
[1496/1758] Compiling no_mpi.cpp
[1497/1758] Compiling device.cpp
[1498/1758] Compiling ops.cpp
[1499/1758] Compiling no_jaccl.cpp
[1500/1758] Compiling distributed.cpp
[1502/1758] Compiling MLX Transforms+CompileOverloads.swift
[1503/1758] Compiling MLX Transforms+Eval.swift
[1504/1758] Compiling MLX Transforms+Grad.swift
[1505/1758] Compiling MLX Transforms+Internal.swift
[1506/1761] Compiling MLX Random.swift
[1507/1761] Compiling MLX State.swift
[1508/1761] Compiling MLX Stream.swift
[1509/1761] Compiling MLX Transforms+Compile.swift
[1510/1761] Compiling MLX MLXFast.swift
[1511/1761] Compiling MLX MLXFastKernel.swift
[1512/1761] Compiling MLX Memory.swift
[1513/1761] Compiling MLX Nested.swift
[1514/1761] Compiling MLX Ops+Array.swift
[1515/1761] Compiling MLX Ops.swift
[1516/1761] Compiling MLX ParameterTypes.swift
[1517/1761] Compiling MLX Protocols.swift
[1518/1761] Compiling MLX MLXArray+Normalizer.swift
[1519/1761] Compiling MLX MLXArray+Ops.swift
[1520/1761] Compiling MLX MLXArray.swift
[1521/1761] Compiling MLX MLXCustomFunction.swift
[1521/1761] Compiling utils.cpp
[1523/1761] Compiling MLX ErrorHandler.swift
[1524/1761] Compiling MLX Export.swift
[1525/1761] Compiling MLX FFT.swift
[1526/1761] Compiling MLX Factory.swift
[1527/1761] Compiling MLX Foundation+Util.swift
[1528/1761] Compiling MLX GPU+Metal.swift
[1529/1761] Compiling MLX IO.swift
[1530/1761] Compiling MLX Linalg.swift
[1531/1761] Compiling MLX Transforms+Vmap.swift
[1532/1761] Compiling MLX Transforms.swift
[1533/1761] Compiling MLX WiredMemory.swift
[1533/1761] Compiling unary.cpp
[1535/1761] Compiling MLX ArrayAt.swift
[1536/1761] Compiling MLX Cmlx+Util.swift
[1537/1761] Compiling MLX DType.swift
[1538/1761] Compiling MLX Device.swift
[1539/1761] Compiling MLX MLXArray+Bytes.swift
[1540/1761] Compiling MLX MLXArray+Indexing.swift
[1541/1761] Compiling MLX MLXArray+Init.swift
[1542/1761] Compiling MLX MLXArray+Metal.swift
[1543/1761] Emitting module MLX
[1543/1761] Compiling softmax.cpp
[1544/1761] Compiling sort.cpp
[1545/1761] Compiling ternary.cpp
[1546/1779] Compiling slicing.cpp
[1547/1779] Compiling scan.cpp
[1548/1779] Compiling compile.cpp
[1550/1779] Compiling MLXNN PositionalEncoding.swift
[1551/1779] Compiling MLXNN Quantized.swift
[1552/1779] Compiling MLXNN Recurrent.swift
[1553/1779] Compiling MLXNN Transformer.swift
[1554/1779] Compiling MLXNN Embedding.swift
[1555/1779] Compiling MLXNN Linear.swift
[1556/1779] Compiling MLXNN Losses.swift
[1557/1779] Compiling MLXNN Module.swift
[1558/1779] Compiling MLXNN Containers.swift
[1559/1779] Compiling MLXNN Convolution.swift
[1560/1779] Compiling MLXNN Normalization.swift
[1561/1779] Compiling MLXNN Pooling.swift
[1562/1779] Compiling MLXNN ConvolutionTransposed.swift
[1563/1779] Compiling MLXNN Dropout.swift
[1564/1779] Compiling MLXNN Activations.swift
[1565/1779] Compiling MLXNN Cache.swift
[1566/1779] Compiling MLXNN Upsample.swift
[1566/1780] Compiling resident.cpp
[1568/1780] Compiling MLXNN ValueAndGrad.swift
[1569/1780] Emitting module MLXNN
[1569/1780] Compiling scaled_dot_product_attention.cpp
[1570/1782] Compiling rope.cpp
[1571/1782] Compiling reduce.cpp
[1572/1782] Compiling metal.cpp
[1573/1782] Compiling primitives.cpp
[1574/1782] Compiling normalization.cpp
[1575/1782] Compiling quantized.cpp
[1577/1782] Emitting module MLXOptimizers
[1578/1782] Compiling MLXOptimizers Optimizers.swift
[1578/1782] Compiling logsumexp.cpp
[1579/1782] Compiling matmul.cpp
[1580/1782] Compiling event.cpp
[1581/1782] Compiling fence.cpp
[1582/1782] Compiling hadamard.cpp
[1583/1782] Compiling indexing.cpp
[1584/1782] Compiling eval.cpp
[1585/1782] Compiling distributed.cpp
[1586/1782] Compiling fft.cpp
[1587/1782] Compiling jit_kernels.cpp
[1588/1782] Compiling device_info.cpp
[1589/1782] Compiling copy.cpp
[1590/1782] Compiling slicing.cpp
[1591/1782] Compiling conv.cpp
[1592/1782] Compiling compiled.cpp
[1593/1782] Compiling primitives.cpp
[1594/1782] Compiling device.cpp
[1595/1782] Compiling threefry.cpp
[1596/1782] Compiling allocator.cpp
[1597/1782] Compiling export.cpp
[1598/1782] Compiling custom_kernel.cpp
[1599/1782] Compiling binary.cpp
[1600/1782] Compiling no_cuda.cpp
[1601/1782] Compiling copy.cpp
[1602/1782] Compiling select.cpp
[1603/1782] Compiling svd.cpp
[1604/1782] Compiling softmax.cpp
[1605/1782] Compiling scan.cpp
[1606/1782] Compiling qrf.cpp
[1607/1782] Compiling sort.cpp
[1608/1782] Compiling quantized.cpp
[1609/1782] Compiling jit_compiler.cpp
[1610/1782] Compiling primitives.cpp
[1611/1782] Compiling luf.cpp
[1612/1782] Compiling logsumexp.cpp
[1613/1782] Compiling matmul.cpp
[1614/1782] Compiling masked_mm.cpp
[1615/1782] Compiling hadamard.cpp
[1616/1782] Compiling cblas.cpp
[1617/1782] Compiling inverse.cpp
[1618/1782] Compiling encoder.cpp
[1619/1782] Compiling bnns.cpp
[1620/1782] Compiling eval.cpp
[1621/1782] Compiling unary.cpp
[1622/1782] Compiling device_info.cpp
[1623/1782] Compiling fft.cpp
[1624/1782] Compiling distributed.cpp
[1625/1782] Compiling indexing.cpp
[1626/1782] Compiling eigh.cpp
[1627/1782] Compiling utils.cpp
[1628/1782] Compiling eig.cpp
[1629/1782] Compiling slicing.cpp
[1630/1782] Compiling arg_reduce.cpp
[1631/1782] Compiling cholesky.cpp
[1632/1782] Compiling reduce.cpp
[1633/1782] Compiling utils.cpp
[1634/1782] Compiling unary_ops.cpp
[1635/1782] Compiling unary.cpp
[1636/1782] Compiling ternary_ops.cpp
[1637/1782] Compiling ternary.cpp
[1638/1782] Compiling steel_gemm_splitk_nax.cpp
[1639/1782] Compiling steel_gemm_splitk.cpp
[1640/1782] Compiling steel_gemm_segmented.cpp
[1641/1782] Compiling steel_gemm_masked.cpp
[1642/1782] Compiling steel_gemm_gather_nax.cpp
[1643/1782] Compiling steel_gemm_gather.cpp
[1644/1782] Compiling steel_gemm_fused_nax.cpp
[1645/1782] Compiling steel_gemm_fused.cpp
[1646/1782] Compiling steel_conv_general.cpp
[1647/1782] Compiling steel_conv_3d.cpp
[1648/1782] Compiling steel_conv.cpp
[1649/1782] Compiling steel_attention_nax.cpp
[1650/1782] Compiling steel_attention.cpp
[1651/1782] Compiling sort.cpp
[1652/1782] Compiling softmax.cpp
[1653/1782] Compiling scatter_axis.cpp
[1654/1782] Compiling scatter.cpp
[1655/1782] Compiling load.cpp
[1656/1782] Compiling scan.cpp
[1657/1782] Compiling reduce_utils.cpp
[1658/1782] Compiling reduce.cpp
[1659/1782] Compiling broadcasting.cpp
[1660/1782] Compiling quantized_utils.cpp
[1661/1782] Compiling quantized_nax.cpp
[1662/1782] Compiling compiled.cpp
[1663/1782] Compiling quantized.cpp
[1664/1782] Compiling masked_scatter.cpp
[1664/1782] Compiling logsumexp.cpp
[1666/1782] Compiling hadamard.cpp
[1667/1782] Compiling gemv_masked.cpp
[1668/1782] Compiling gemm_nax.cpp
[1669/1782] Compiling gemm.cpp
[1670/1782] Compiling gather_front.cpp
[1671/1782] Compiling gather_axis.cpp
[1672/1782] Compiling gather.cpp
[1673/1782] Compiling fp_quantized_nax.cpp
[1674/1782] Compiling fp_quantized.cpp
[1675/1782] Compiling fft.cpp
[1676/1782] Compiling copy.cpp
[1677/1782] Compiling conv.cpp
[1678/1782] Compiling compiled_preamble.cpp
[1679/1782] Compiling binary_two.cpp
[1680/1782] Compiling binary_ops.cpp
[1681/1782] Compiling binary.cpp
[1682/1782] Compiling common.cpp
[1683/1782] Compiling arange.cpp
[1684/1782] Compiling conv.cpp
[1685/1782] Compiling copy.cpp
[1686/1782] Compiling array.cpp
[1687/1782] Compiling version.cpp
[1688/1782] Compiling transforms_impl.cpp
[1689/1782] Compiling transforms.cpp
[1690/1782] Compiling vector.cpp
[1691/1782] Compiling string.cpp
[1692/1782] Compiling stream.cpp
[1693/1782] Compiling reduce.cpp
[1694/1782] Compiling compiled_conditional.cpp
[1695/1782] Compiling random.cpp
[1696/1782] Compiling metal.cpp
[1697/1782] Compiling memory.cpp
[1698/1782] Compiling linalg.cpp
[1699/1782] Compiling ops.cpp
[1700/1782] Compiling map.cpp
[1701/1782] Compiling io_types.cpp
[1702/1782] Compiling io.cpp
[1703/1782] Compiling fft.cpp
[1704/1782] Compiling error.cpp
[1705/1782] Compiling Cmlx.m
[1705/1782] Write sources
[1709/1782] Compiling CNIOWindows shim.c
[1710/1786] Compiling fast.cpp
[1711/1786] Compiling CNIOWindows WSAStartup.c
[1712/1786] Compiling CNIOWindows shim.c
[1713/1786] Compiling CNIOWindows WSAStartup.c
[1714/1786] Compiling CNIOWASI CNIOWASI.c
[1716/1786] Compiling CNIOOpenBSD shim.c
[1718/1786] Compiling CNIOLinux shim.c
[1719/1786] Compiling CNIOLinux liburing_shims.c
[1720/1786] Compiling CNIOLinux shim.c
[1721/1786] Compiling CNIOLinux liburing_shims.c
[1722/1786] Compiling CNIOFreeBSD shim.c
[1724/1786] Compiling export.cpp
[1725/1786] Compiling format.cc
[1726/1786] Compiling cuda.cpp
[1727/1786] Compiling compile.cpp
[1728/1786] Compiling device.cpp
[1729/1786] Compiling CNIODarwin shim.c
[1730/1786] Compiling closure.cpp
[1731/1786] Compiling array.cpp
[1732/1786] Compiling CNIODarwin shim.c
[1733/1786] Compiling recursion_guard.cc
[1734/1786] Compiling binary.cpp
[1735/1786] Compiling c-nioatomics.c
[1736/1786] Compiling logging.cc
[1737/1786] Compiling c-nioatomics.c
[1738/1818] Compiling c-atomics.c
[1739/1823] Compiling testing.cc
[1740/1823] Compiling c-atomics.c
[1741/1830] Compiling tokenizer_info.cc
[1743/1837] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[1744/1837] Compiling NIOConcurrencyHelpers lock.swift
[1745/1837] Compiling NIOConcurrencyHelpers NIOLock.swift
[1746/1837] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[1747/1837] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[1748/1837] Emitting module NIOConcurrencyHelpers
[1749/1837] Compiling NIOConcurrencyHelpers atomics.swift
[1750/1837] Compiling MLX Transforms+CompileOverloads.swift
[1751/1837] Compiling MLX Transforms+Eval.swift
[1752/1837] Compiling MLX Transforms+Grad.swift
[1753/1837] Compiling MLX Transforms+Internal.swift
[1753/1840] Compiling regex_converter.cc
[1755/1840] Compiling NIOConcurrencyHelpers lock.swift
[1756/1840] Compiling CastMacros CastableDiagnostic.swift
[1757/1840] Compiling CastMacros CastMacroPlugin.swift
[1758/1840] Emitting module CastMacros
[1759/1840] Compiling CastMacros CastableMacro.swift
[1760/1840] Compiling MLX Random.swift
[1761/1840] Compiling MLX State.swift
[1762/1840] Compiling MLX Stream.swift
[1763/1840] Compiling MLX Transforms+Compile.swift
[1764/1840] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[1765/1840] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[1766/1840] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[1767/1840] Compiling NIOConcurrencyHelpers NIOLock.swift
[1768/1840] Compiling NIOConcurrencyHelpers atomics.swift
[1769/1840] Emitting module NIOConcurrencyHelpers
[1770/1840] Emitting module MLX
[1770/1840] Write Objects.LinkFileList
[1772/1840] Compiling MLX Foundation+Util.swift
[1773/1840] Compiling MLX GPU+Metal.swift
[1774/1840] Compiling MLX IO.swift
[1775/1840] Compiling MLX Linalg.swift
[1776/1840] Compiling MLX ArrayAt.swift
[1777/1840] Compiling MLX Cmlx+Util.swift
[1778/1840] Compiling MLX DType.swift
[1779/1840] Compiling MLX Device.swift
[1780/1840] Compiling MLX MLXFast.swift
[1781/1840] Compiling MLX MLXFastKernel.swift
[1782/1840] Compiling MLX Memory.swift
[1783/1840] Compiling MLX Nested.swift
[1784/1840] Compiling MLX Ops+Array.swift
[1785/1840] Compiling MLX Ops.swift
[1786/1840] Compiling MLX ParameterTypes.swift
[1787/1840] Compiling MLX Protocols.swift
[1787/1840] Compiling json_schema_converter_ext.cc
[1789/1840] Compiling MLX Transforms+Vmap.swift
[1790/1840] Compiling MLX Transforms.swift
[1791/1840] Compiling MLX WiredMemory.swift
[1791/1840] Compiling grammar_printer.cc
[1793/1840] Compiling MLX MLXArray+Normalizer.swift
[1794/1840] Compiling MLX MLXArray+Ops.swift
[1795/1840] Compiling MLX MLXArray.swift
[1796/1840] Compiling MLX MLXCustomFunction.swift
[1797/1840] Compiling MLX ErrorHandler.swift
[1798/1840] Compiling MLX Export.swift
[1799/1840] Compiling MLX FFT.swift
[1800/1840] Compiling MLX Factory.swift
[1801/1840] Compiling MLX MLXArray+Bytes.swift
[1802/1840] Compiling MLX MLXArray+Indexing.swift
[1803/1840] Compiling MLX MLXArray+Init.swift
[1804/1840] Compiling MLX MLXArray+Metal.swift
[1804/1840] Compiling grammar_parser.cc
[1805/1840] Compiling earley_parser.cc
[1806/1840] Compiling config.cc
[1807/1858] Linking CastMacros-tool
[1808/1858] Compiling json_schema_converter.cc
[1809/1858] Compiling recursion_guard.cc
[1810/1858] Compiling grammar_matcher.cc
[1811/1858] Compiling logging.cc
[1812/1858] Compiling fsm.cc
[1813/1858] Compiling testing.cc
[1814/1858] Compiling grammar_functor.cc
[1815/1858] Compiling regex_converter.cc
[1816/1858] Compiling tokenizer_info.cc
[1818/1858] Compiling MLXNN Normalization.swift
[1819/1858] Compiling MLXNN Pooling.swift
[1820/1858] Compiling MLXNN Recurrent.swift
[1821/1858] Compiling MLXNN Transformer.swift
[1822/1858] Compiling MLXNN PositionalEncoding.swift
[1823/1858] Compiling MLXNN Quantized.swift
[1824/1858] Compiling MLXNN Losses.swift
[1825/1858] Compiling MLXNN Module.swift
[1826/1858] Compiling MLXNN ConvolutionTransposed.swift
[1827/1858] Compiling MLXNN Dropout.swift
[1828/1858] Compiling MLXNN Embedding.swift
[1829/1858] Compiling MLXNN Linear.swift
[1830/1858] Compiling MLXNN Containers.swift
[1831/1858] Compiling MLXNN Convolution.swift
[1832/1858] Compiling MLXNN Activations.swift
[1833/1858] Compiling MLXNN Cache.swift
[1834/1858] Compiling MLXNN Upsample.swift
[1835/1859] Compiling MLXNN ValueAndGrad.swift
[1836/1859] Emitting module MLXNN
[1836/1859] Compiling json_schema_converter_ext.cc
[1837/1861] Compiling grammar_printer.cc
[1838/1861] Compiling structural_tag.cc
[1840/1861] Emitting module MLXOptimizers
[1841/1861] Compiling MLXOptimizers Optimizers.swift
[1841/1861] Compiling grammar_builder.cc
[1842/1861] Compiling grammar_parser.cc
[1843/1861] Compiling json_schema_converter.cc
[1844/1861] Compiling grammar_matcher.cc
[1845/1861] Compiling fsm_builder.cc
[1846/1861] Compiling config.cc
[1847/1861] Compiling CMLXStructured error_handler.cpp
[1847/1861] Write sources
[1847/1861] Compiling CMLXStructured grammar_matcher.cpp
[1847/1861] Write sources
[1853/1861] Compiling grammar_functor.cc
[1854/1861] Compiling grammar_compiler.cc
[1855/1904] Compiling grammar.cc
[1857/2009] Compiling BitCollections BitSet+Codable.swift
[1858/2009] Compiling BitCollections BitSet+CustomDebugStringConvertible.swift
[1859/2009] Compiling BitCollections BitSet+CustomReflectable.swift
[1860/2009] Compiling BitCollections BitSet+CustomStringConvertible.swift
[1861/2009] Compiling BitCollections BitSet+Equatable.swift
[1862/2009] Compiling BitCollections BitSet+ExpressibleByArrayLiteral.swift
[1862/2015] Compiling earley_parser.cc
[1864/2015] Compiling Atomics UnsafeAtomicLazyReference.swift
[1865/2015] Compiling Atomics IntegerOperations.swift
[1866/2015] Compiling Atomics AtomicReference.swift
[1867/2015] Compiling Atomics AtomicStorage.swift
[1868/2015] Compiling Atomics ManagedAtomicLazyReference.swift
[1869/2015] Compiling Atomics UnsafeAtomic.swift
[1870/2015] Compiling Atomics AtomicValue.swift
[1871/2015] Compiling Atomics AtomicMemoryOrderings.swift
[1871/2016] Compiling CMLXStructured grammar_compiler.cpp
[1875/2016] Compiling Atomics DoubleWord.swift
[1876/2016] Compiling Atomics ManagedAtomic.swift
[1881/2017] Compiling Atomics Unmanaged extensions.swift
[1883/2017] Compiling Atomics AtomicInteger.swift
[1884/2017] Compiling Atomics AtomicOptionalWrappable.swift
[1889/2023] Compiling Atomics PointerConformances.swift
[1890/2023] Compiling Atomics Primitives.native.swift
[1893/2023] Emitting module BitCollections
[1894/2023] Compiling BitCollections BitSet+Extras.swift
[1895/2023] Compiling BitCollections BitSet+Hashable.swift
[1896/2023] Compiling BitCollections BitSet+Initializers.swift
[1897/2023] Compiling BitCollections BitSet+Invariants.swift
[1898/2023] Compiling BitCollections BitSet+Random.swift
[1899/2023] Compiling BitCollections BitSet+SetAlgebra basics.swift
[1900/2023] Compiling BitCollections BitSet+SetAlgebra conformance.swift
[1901/2023] Compiling BitCollections BitSet+SetAlgebra formIntersection.swift
[1902/2023] Compiling BitCollections BitSet+SetAlgebra formSymmetricDifference.swift
[1903/2023] Compiling BitCollections BitSet+SetAlgebra formUnion.swift
[1904/2023] Compiling BitCollections BitSet+SetAlgebra intersection.swift
[1905/2023] Compiling BitCollections BitSet+SetAlgebra isDisjoint.swift
[1928/2023] Compiling BitCollections BitSet+SetAlgebra isEqualSet.swift
[1929/2023] Compiling BitCollections BitSet+SetAlgebra isStrictSubset.swift
[1930/2023] Compiling BitCollections BitSet+SetAlgebra isStrictSuperset.swift
[1931/2023] Compiling BitCollections BitSet+SetAlgebra isSubset.swift
[1932/2023] Compiling BitCollections BitSet+SetAlgebra isSuperset.swift
[1933/2023] Compiling BitCollections BitSet+SetAlgebra subtract.swift
[1934/2023] Compiling BitCollections BitSet+SetAlgebra subtracting.swift
[1935/2023] Compiling BitCollections BitSet+SetAlgebra symmetricDifference.swift
[1936/2023] Compiling BitCollections BitSet+SetAlgebra union.swift
[1937/2023] Compiling BitCollections BitSet+Sorted Collection APIs.swift
[1938/2023] Compiling BitCollections BitSet.Counted.swift
[1939/2023] Compiling BitCollections BitSet.Index.swift
[1952/2023] Compiling Atomics OptionalRawRepresentable.swift
[1953/2023] Compiling Atomics RawRepresentable.swift
[1954/2023] Compiling BitCollections BitSet._UnsafeHandle.swift
[1955/2023] Compiling BitCollections BitSet.swift
[1956/2023] Compiling BitCollections Range+Utilities.swift
[1957/2023] Compiling BitCollections Slice+Utilities.swift
[1958/2023] Compiling BitCollections UInt+Tricks.swift
[1959/2023] Compiling BitCollections _Word.swift
[1962/2023] Compiling Atomics AtomicBool.swift
[1963/2023] Compiling Atomics IntegerConformances.swift
[1966/2023] Emitting module BitCollections
[1991/2023] Compiling BitCollections BitArray+RangeReplaceableCollection.swift
[1992/2023] Compiling BitCollections BitArray+Shifts.swift
[1993/2023] Compiling BitCollections BitArray+Testing.swift
[1995/2023] Compiling BitCollections BitArray._UnsafeHandle.swift
[1997/2023] Compiling BitCollections BitArray.swift
[2000/2023] Compiling BitCollections BitSet+BidirectionalCollection.swift
[2008/2023] Compiling structural_tag.cc
[2020/2035] Compiling Collections DequeModule reexports.swift
[2021/2035] Compiling Collections HashTreeCollections reexports.swift
[2022/2035] Compiling Collections HeapModule reexports.swift
[2023/2035] Compiling Collections HashTreeCollections reexports.swift
[2024/2035] Compiling Collections OrderedCollections reexports.swift
[2026/2035] Compiling Collections HeapModule reexports.swift
[2027/2035] Emitting module Collections
[2028/2035] Compiling Collections BitCollections reexports.swift
[2029/2035] Compiling Collections DequeModule reexports.swift
[2030/2035] Emitting module Collections
[2031/2035] Compiling Collections BitCollections reexports.swift
[2032/2035] Emitting module Atomics
[2032/2035] Compiling fsm.cc
[2034/2035] Emitting module Atomics
[2034/2185] Compiling compiled_grammar.cc
[2036/2185] Compiling NIOCore MarkedCircularBuffer.swift
[2037/2185] Compiling NIOCore MulticastChannel.swift
[2038/2185] Compiling NIOCore NIOAny.swift
[2039/2185] Compiling NIOCore NIOCloseOnErrorHandler.swift
[2040/2185] Compiling NIOCore NIOCoreSendableMetatype.swift
[2041/2185] Compiling NIOCore NIODecodedAsyncSequence.swift
[2042/2185] Compiling NIOCore NIOLoopBound.swift
[2050/2199] Compiling NIOCore NIOAsyncWriter.swift
[2051/2199] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[2052/2199] Compiling NIOCore BSDSocketAPI.swift
[2053/2199] Compiling NIOCore ByteBuffer-aux.swift
[2054/2199] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[2055/2199] Compiling NIOCore ByteBuffer-conversions.swift
[2056/2199] Compiling NIOCore ByteBuffer-core.swift
[2057/2199] Compiling NIOCore EventLoopFuture+Deprecated.swift
[2058/2199] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[2059/2199] Compiling NIOCore EventLoopFuture.swift
[2060/2199] Compiling NIOCore FileDescriptor.swift
[2061/2199] Compiling NIOCore FileHandle.swift
[2062/2199] Compiling NIOCore FileRegion.swift
[2063/2199] Compiling NIOCore GlobalSingletons.swift
[2071/2199] Compiling NIOCore SocketAddresses.swift
[2072/2199] Compiling NIOCore SocketOptionProvider.swift
[2073/2199] Compiling NIOCore SystemCallHelpers.swift
[2074/2199] Compiling NIOCore TimeAmount+Duration.swift
[2075/2199] Compiling NIOCore TypeAssistedChannelHandler.swift
[2076/2199] Compiling NIOCore UniversalBootstrapSupport.swift
[2077/2199] Compiling NIOCore Utilities.swift
[2085/2199] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[2086/2199] Compiling NIOCore NIOScheduledCallback.swift
[2087/2199] Compiling NIOCore NIOSendable.swift
[2088/2199] Compiling NIOCore NIOSplitLinesMessageDecoder.swift
[2089/2199] Compiling NIOCore NIOTransportAccessibleChannelCore.swift
[2090/2199] Compiling NIOCore RecvByteBufferAllocator.swift
[2091/2199] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[2092/2199] Compiling NIOCore ByteBuffer-hex.swift
[2093/2199] Compiling NIOCore ByteBuffer-int.swift
[2094/2199] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[2095/2199] Compiling NIOCore ByteBuffer-multi-int.swift
[2096/2199] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[2097/2199] Compiling NIOCore ByteBuffer-views.swift
[2098/2199] Compiling NIOCore Channel.swift
[2099/2199] Compiling NIOCore AddressedEnvelope.swift
[2100/2199] Compiling NIOCore AsyncAwaitSupport.swift
[2101/2199] Compiling NIOCore AsyncChannel.swift
[2102/2199] Compiling NIOCore AsyncChannelHandler.swift
[2103/2199] Compiling NIOCore AsyncChannelInboundStream.swift
[2104/2199] Compiling NIOCore AsyncChannelOutboundWriter.swift
[2105/2199] Compiling NIOCore NIOAsyncSequenceProducer.swift
[2106/2199] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[2107/2199] Compiling NIOCore ChannelHandler.swift
[2108/2199] Compiling NIOCore ChannelHandlers.swift
[2109/2199] Compiling NIOCore ChannelInvoker.swift
[2110/2199] Compiling NIOCore ChannelOption.swift
[2111/2199] Compiling NIOCore ChannelPipeline.swift
[2112/2199] Compiling NIOCore CircularBuffer.swift
[2113/2199] Compiling NIOCore Codec.swift
[2114/2199] Compiling JSONSchema JSONSchema+String.swift
[2115/2200] Compiling JSONSchema JSONSchema+Object.swift
[2116/2200] Compiling JSONSchema JSONSchema+ObjectProperties.swift
[2117/2200] Compiling JSONSchema JSONSchema+String.swift
[2118/2201] Compiling JSONSchema JSONSchema+Number.swift
[2119/2201] Emitting module JSONSchema
[2120/2201] Compiling NIOCore ConvenienceOptionSupport.swift
[2121/2201] Compiling NIOCore DeadChannel.swift
[2122/2201] Compiling NIOCore DispatchQueue+WithFuture.swift
[2123/2201] Compiling NIOCore EventLoop+Deprecated.swift
[2124/2201] Compiling NIOCore EventLoop+SerialExecutor.swift
[2125/2201] Compiling NIOCore EventLoop.swift
[2126/2201] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[2127/2201] Compiling NIOCore IO.swift
[2128/2201] Compiling NIOCore IOData.swift
[2129/2201] Compiling NIOCore IPProtocol.swift
[2130/2201] Compiling NIOCore IntegerBitPacking.swift
[2131/2201] Compiling NIOCore IntegerTypes.swift
[2132/2201] Compiling NIOCore Interfaces.swift
[2133/2201] Compiling NIOCore Linux.swift
[2141/2201] Compiling JSONSchema JSONSchema+Null.swift
[2142/2201] Compiling JSONSchema JSONSchema.swift
[2144/2201] Compiling JSONSchema JSONSchema+Integer.swift
[2145/2201] Compiling JSONSchema JSONSchema+Boolean.swift
[2146/2201] Compiling JSONSchema JSONSchema+Enum.swift
[2147/2201] Compiling JSONSchema JSONSchema+Array.swift
[2148/2201] Emitting module JSONSchema
[2149/2201] Compiling JSONSchema JSONSchema+Object.swift
[2150/2201] Compiling JSONSchema JSONSchema+Enum.swift
[2151/2201] Compiling JSONSchema JSONSchema+Number.swift
[2152/2201] Compiling JSONSchema JSONSchema+Boolean.swift
[2153/2201] Compiling JSONSchema JSONSchema+Null.swift
[2154/2201] Compiling JSONSchema JSONSchema+Array.swift
[2155/2201] Compiling JSONSchema JSONSchema+ObjectProperties.swift
[2156/2201] Compiling JSONSchema JSONSchema+Integer.swift
[2192/2201] Emitting module NIOCore
[2202/2211] Compiling EventSource EventSource+AsyncHTTPClient.swift
[2203/2211] Compiling EventSource AsyncEventsSequence.swift
[2204/2211] Compiling EventSource AsyncSequence+Events.swift
[2205/2211] Compiling EventSource EventSource.swift
[2206/2211] Emitting module EventSource
[2207/2211] Compiling EventSource EventSource+AsyncHTTPClient.swift
[2208/2211] Compiling EventSource AsyncSequence+Events.swift
[2209/2211] Compiling EventSource AsyncEventsSequence.swift
[2210/2211] Compiling EventSource EventSource.swift
[2211/2211] Emitting module EventSource
[2212/2311] Compiling HuggingFace HubClient+Papers.swift
[2213/2311] Compiling HuggingFace HubClient+Repos.swift
[2214/2311] Compiling HuggingFace HubClient+Spaces.swift
[2215/2311] Compiling HuggingFace HubClient+User.swift
[2216/2311] Compiling HuggingFace HubClient.swift
[2217/2311] Compiling HuggingFace Model.swift
[2218/2316] Compiling HuggingFace File.swift
[2219/2316] Compiling HuggingFace Git.swift
[2220/2316] Compiling HuggingFace HubCache.swift
[2221/2316] Compiling HuggingFace HubClient+Collections.swift
[2222/2316] Compiling HuggingFace HubClient+Datasets.swift
[2223/2321] Compiling HuggingFace AccessRequest.swift
[2224/2321] Compiling HuggingFace Billing.swift
[2225/2321] Compiling HuggingFace Collection.swift
[2226/2321] Compiling HuggingFace CommaSeparatedList.swift
[2227/2321] Compiling HuggingFace Dataset.swift
[2228/2321] Compiling HuggingFace Discussion.swift
[2229/2321] Compiling HuggingFace SpeechToText.swift
[2230/2321] Compiling HuggingFace CacheLocationProvider.swift
[2231/2321] Compiling HuggingFace Data+Extensions.swift
[2232/2321] Compiling HuggingFace JSONDecoder+Extensions.swift
[2233/2321] Compiling HuggingFace URL+Extensions.swift
[2234/2321] Compiling HuggingFace URLSession+Linux.swift
[2235/2321] Compiling HuggingFace OAuth.swift
[2236/2321] Compiling HuggingFace Organization.swift
[2237/2321] Compiling HuggingFace Pagination.swift
[2238/2321] Compiling HuggingFace Paper.swift
[2239/2321] Compiling HuggingFace Repo.swift
[2240/2321] Compiling HuggingFace ResourceGroup.swift
[2241/2321] Compiling HuggingFace Space.swift
[2242/2321] Compiling HuggingFace Tags.swift
[2243/2321] Compiling HuggingFace User.swift
[2244/2321] Compiling HuggingFace ChatCompletion.swift
[2250/2321] Compiling HuggingFace HubClient+Pagination.swift
[2255/2321] Compiling HuggingFace FileLock.swift
[2256/2321] Compiling HuggingFace HTTPClient.swift
[2257/2321] Compiling HuggingFace MultipartBuilder.swift
[2258/2321] Compiling HuggingFace TokenProvider.swift
[2259/2321] Compiling HuggingFace Value.swift
[2260/2321] Compiling HuggingFace FeatureExtraction.swift
[2261/2321] Compiling HuggingFace InferenceClient.swift
[2262/2321] Compiling HuggingFace Message.swift
[2263/2321] Compiling HuggingFace Provider.swift
[2275/2321] Compiling HuggingFace TokenStorage.swift
[2280/2321] Emitting module HuggingFace
[2282/2321] Compiling HuggingFace HubClient+Discussions.swift
[2283/2321] Compiling HuggingFace HubClient+Files.swift
[2284/2321] Compiling HuggingFace HubClient+Git.swift
[2285/2321] Compiling HuggingFace HubClient+Models.swift
[2286/2321] Compiling HuggingFace HubClient+OAuth.swift
[2287/2321] Compiling HuggingFace HubClient+Organizations.swift
[2313/2321] Compiling HuggingFace TextToImage.swift
[2314/2321] Compiling HuggingFace TextToVideo.swift
[2315/2321] Compiling HuggingFace HuggingFaceAuthenticationManager.swift
[2316/2321] Compiling HuggingFace OAuthClient.swift
[2322/2335] Compiling Hub resource_bundle_accessor.swift
[2323/2335] Compiling Hub YYJSONParser.swift
[2324/2335] Compiling Hub resource_bundle_accessor.swift
[2325/2335] Compiling Hub YYJSONParser.swift
[2326/2335] Compiling Hub Config.swift
[2327/2335] Compiling Hub Hub.swift
[2328/2335] Compiling Hub BinaryDistinct.swift
[2329/2335] Compiling Hub HubApi.swift
[2330/2335] Emitting module Hub
[2331/2335] Compiling Hub Hub.swift
[2332/2335] Compiling Hub Config.swift
[2333/2335] Compiling Hub BinaryDistinct.swift
[2334/2335] Emitting module Hub
[2335/2335] Compiling Hub HubApi.swift
[2336/2359] Compiling Tokenizers Trie.swift
[2337/2359] Compiling Tokenizers BPETokenizer.swift
[2338/2359] Compiling Tokenizers BertTokenizer.swift
[2339/2360] Compiling Tokenizers Trie.swift
[2340/2360] Compiling Tokenizers TokenLattice.swift
[2341/2360] Compiling Tokenizers String+PreTokenization.swift
[2342/2360] Compiling Tokenizers PostProcessor.swift
[2343/2360] Compiling Tokenizers PreTokenizer.swift
[2344/2360] Compiling Tokenizers Normalizer.swift
[2345/2360] Compiling Tokenizers BPETokenizer.swift
[2346/2360] Compiling Tokenizers BertTokenizer.swift
[2349/2360] Emitting module Tokenizers
[2350/2360] Compiling Tokenizers Tokenizer.swift
[2351/2361] Compiling Tokenizers TokenLattice.swift
[2352/2361] Compiling Tokenizers PreTokenizer.swift
[2355/2361] Compiling Tokenizers PostProcessor.swift
[2356/2361] Emitting module Tokenizers
[2357/2361] Compiling Tokenizers Normalizer.swift
[2358/2361] Compiling Tokenizers Tokenizer.swift
[2359/2361] Compiling Tokenizers String+PreTokenization.swift
[2360/2361] Compiling Tokenizers UnigramTokenizer.swift
[2362/2381] Compiling Generation GenerationConfig.swift
[2363/2381] Emitting module Generation
[2364/2381] Compiling Generation TopPLogitsWarper.swift
[2365/2381] Compiling Generation TopKLogitsWarper.swift
[2366/2381] Compiling Generation MinPLogitsWarper.swift
[2367/2381] Compiling Generation LogitsProcessor.swift
[2368/2381] Compiling Generation TopPLogitsWarper.swift
[2369/2381] Compiling Generation RepetitionPenaltyLogitsProcessor.swift
[2370/2381] Compiling Generation TemperatureLogitsWarper.swift
[2372/2381] Compiling Generation TopKLogitsWarper.swift
[2373/2381] Compiling Generation MinPLogitsWarper.swift
[2374/2381] Compiling Generation LogitsProcessor.swift
[2375/2381] Compiling Generation GenerationConfig.swift
[2376/2381] Compiling Generation RepetitionPenaltyLogitsProcessor.swift
[2377/2381] Compiling Generation Decoders.swift
[2378/2381] Compiling Generation Generation.swift
[2379/2381] Compiling Generation Decoders.swift
[2380/2381] Emitting module Generation
[2381/2381] Compiling Generation Generation.swift
[2382/2389] Compiling Models LanguageModelTypes.swift
[2383/2389] Compiling Models Weights.swift
[2384/2389] Compiling Models LanguageModel.swift
[2385/2389] Emitting module Models
[2386/2389] Compiling Models LanguageModelTypes.swift
[2387/2389] Emitting module Models
[2388/2389] Compiling Models Weights.swift
[2389/2389] Compiling Models LanguageModel.swift
[2390/2483] Emitting module MLXLMCommon
[2391/2488] Compiling MLXLMCommon ModelTypeRegistry.swift
[2392/2488] Compiling MLXLMCommon ProcessorTypeRegistry.swift
[2393/2488] Compiling MLXLMCommon RoPEUtils.swift
[2394/2488] Compiling MLXLMCommon SuScaledRoPE.swift
[2395/2488] Compiling MLXLMCommon SwitchLayers.swift
[2396/2493] Compiling MLXLMCommon ModelContainer.swift
[2397/2493] Compiling MLXLMCommon ModelFactory.swift
[2398/2493] Compiling MLXLMCommon Gemma.swift
[2399/2493] Compiling MLXLMCommon Module+Extensions.swift
[2400/2493] Compiling MLXLMCommon AbstractModelRegistry.swift
[2401/2493] Compiling MLXLMCommon ModelAdapterTypeRegistry.swift
[2402/2493] Compiling MLXLMCommon AttentionUtils.swift
[2403/2493] Compiling MLXLMCommon BaseConfiguration.swift
[2404/2493] Compiling MLXLMCommon Chat.swift
[2405/2493] Compiling MLXLMCommon ChatSession.swift
[2406/2493] Compiling MLXLMCommon Tool.swift
[2407/2493] Compiling MLXLMCommon ToolCall.swift
[2408/2493] Compiling MLXLMCommon ToolCallFormat.swift
[2409/2493] Compiling MLXLMCommon ToolCallProcessor.swift
[2410/2493] Compiling MLXLMCommon ToolParameter.swift
[2411/2493] Compiling MLXLMCommon Tokenizer.swift
[2412/2493] Compiling MLXLMCommon GLM4ToolCallParser.swift
[2413/2493] Compiling MLXLMCommon GemmaFunctionParser.swift
[2414/2493] Compiling MLXLMCommon JSONToolCallParser.swift
[2415/2493] Compiling MLXLMCommon KimiK2ToolCallParser.swift
[2421/2493] Compiling MLXLMCommon MiniMaxM2ToolCallParser.swift
[2422/2493] Compiling MLXLMCommon MistralToolCallParser.swift
[2423/2493] Compiling MLXLMCommon ParserUtilities.swift
[2424/2493] Compiling MLXLMCommon PythonicToolCallParser.swift
[2425/2493] Compiling MLXLMCommon XMLFunctionParser.swift
[2436/2493] Compiling MLXLMCommon DoRA+Layers.swift
[2437/2493] Compiling MLXLMCommon LoRA+Layers.swift
[2438/2493] Compiling MLXLMCommon LoRAContainer.swift
[2439/2493] Compiling MLXLMCommon LoRAModel.swift
[2440/2493] Compiling MLXLMCommon ModelAdapter.swift
[2441/2493] Compiling MLXLMCommon ModelAdapterFactory.swift
[2442/2493] Emitting module MLXLMCommon
[2459/2493] Compiling MLXLMCommon JSONDecodingTypes.swift
[2460/2493] Compiling MLXLMCommon KVCache.swift
[2461/2493] Compiling MLXLMCommon LanguageModel.swift
[2462/2493] Compiling MLXLMCommon Load.swift
[2463/2493] Compiling MLXLMCommon ModelConfiguration.swift
[2464/2493] Compiling MLXLMCommon Evaluate.swift
[2465/2493] Compiling MLXLMCommon Encodable+toolResult.swift
[2466/2493] Compiling MLXLMCommon JSONDecoder+JSON5.swift
[2467/2493] Compiling MLXLMCommon GenerationConfigFile.swift
[2468/2493] Compiling MLXLMCommon InterpolationUtils.swift
[2484/2493] Compiling MLXLMCommon Value.swift
[2485/2493] Compiling MLXLMCommon UserInput.swift
[2486/2493] Compiling MLXLMCommon SerialAccessContainer.swift
[2487/2493] Compiling MLXLMCommon WiredMemoryPolicies.swift
[2488/2493] Compiling MLXLMCommon WiredMemoryUtils.swift
[2494/2619] Compiling MLXStructured StructuralTag+Builder.swift
[2495/2620] Compiling MLXStructured GrammarMaskedLogitProcessor.swift
[2496/2620] Compiling MLXStructured StructuralTag+Builder.swift
[2497/2620] Compiling MLXStructured Grammar.swift
[2498/2620] Compiling MLXStructured GrammarMatcher.swift
[2499/2620] Compiling MLXLLM AfMoE.swift
[2500/2620] Compiling MLXLLM Apertus.swift
[2501/2620] Compiling MLXStructured Grammar+Structural.swift
[2502/2620] Compiling MLXStructured GrammarMatcherFactory.swift
[2503/2621] Compiling MLXStructured GrammarMatcher.swift
[2504/2621] Compiling MLXStructured GrammarMaskedLogitProcessor.swift
[2505/2621] Compiling MLXStructured Grammar.swift
[2506/2621] Compiling MLXStructured Grammar+Structural.swift
[2507/2621] Compiling MLXStructured GrammarMatcherFactory.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
 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
 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
 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
 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
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
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: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
 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
 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
 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
 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
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
118 |     let content = try JSONDecoder().decode(Content.self, from: Data(result.output.utf8))
119 |     return (result, content)
[2510/2621] Emitting module MLXStructured
[2511/2621] Compiling MLXLLM Lora+Data.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
 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
 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
 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
 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
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
118 |     let content = try JSONDecoder().decode(Content.self, from: Data(result.output.utf8))
119 |     return (result, content)
[2512/2621] Compiling MLXLLM LoraTrain.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
 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
 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
 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
 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
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
118 |     let content = try JSONDecoder().decode(Content.self, from: Data(result.output.utf8))
119 |     return (result, content)
[2513/2621] Compiling MLXLLM LLMModel.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
 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
 87 |             throw XGrammarError.emptyGrammar
 88 |         case .ebnf(let ebnf):
[2514/2621] Compiling MLXLLM LLMModelFactory.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
 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
 87 |             throw XGrammarError.emptyGrammar
 88 |         case .ebnf(let ebnf):
[2517/2621] Emitting module MLXStructured
/Users/admin/builder/spi-builder-workspace/Sources/MLXStructured/Backends/XGrammar.swift:86:30: warning: 'raw' is deprecated: Prefer constructing prompt manually, this property will be removed in the future versions
 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
 87 |             throw XGrammarError.emptyGrammar
 88 |         case .ebnf(let ebnf):
/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
 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
 87 |             throw XGrammarError.emptyGrammar
 88 |         case .ebnf(let ebnf):
[2520/2621] Compiling MLXStructured StructuralTag.swift
[2522/2621] Compiling MLXLLM PhiMoE.swift
[2523/2621] Compiling MLXLLM Qwen2.swift
[2524/2621] Compiling MLXLLM Qwen3.swift
[2525/2621] Compiling MLXLLM Qwen35.swift
[2526/2621] Compiling MLXLLM Qwen35MoE.swift
[2527/2626] Compiling MLXLLM Olmo3.swift
[2528/2626] Compiling MLXLLM OlmoE.swift
[2529/2626] Compiling MLXLLM OpenELM.swift
[2530/2626] Compiling MLXLLM Phi.swift
[2531/2626] Compiling MLXLLM Phi3.swift
[2542/2631] Emitting module MLXLLM
[2544/2631] Compiling MLXLLM MiniMax.swift
[2545/2631] Compiling MLXLLM Mistral3Text.swift
[2546/2631] Compiling MLXLLM NanoChat.swift
[2547/2631] Compiling MLXLLM NemotronH.swift
[2548/2631] Compiling MLXLLM Olmo2.swift
[2549/2631] Compiling MLXLLM Lille130m.swift
[2550/2631] Compiling MLXLLM Llama.swift
[2551/2631] Compiling MLXLLM MiMo.swift
[2552/2631] Compiling MLXLLM MiMoV2Flash.swift
[2553/2631] Compiling MLXLLM MiniCPM.swift
[2576/2631] Compiling MLXLLM GraniteMoeHybrid.swift
[2577/2631] Compiling MLXLLM Internlm2.swift
[2578/2631] Compiling MLXLLM Jamba.swift
[2579/2631] Compiling MLXLLM LFM2.swift
[2580/2631] Compiling MLXLLM LFM2MoE.swift
[2581/2631] Compiling MLXLLM GatedDelta.swift
[2582/2631] Compiling MLXLLM Gemma.swift
[2583/2631] Compiling MLXLLM Gemma2.swift
[2584/2631] Compiling MLXLLM Gemma3Text.swift
[2585/2631] Compiling MLXLLM Gemma3nText.swift
[2586/2631] Compiling MLXLLM Granite.swift
[2598/2631] Compiling MLXLLM BaichuanM1.swift
[2599/2631] Compiling MLXLLM BailingMoe.swift
[2600/2631] Compiling MLXLLM Bitnet.swift
[2601/2631] Compiling MLXLLM Cohere.swift
[2602/2631] Compiling MLXLLM DeepseekV3.swift
[2603/2631] Compiling MLXLLM Ernie4_5.swift
[2604/2631] Compiling MLXLLM Exaone4.swift
[2605/2631] Compiling MLXLLM FalconH1.swift
[2606/2631] Compiling MLXLLM GLM4.swift
[2607/2631] Compiling MLXLLM GLM4MOE.swift
[2608/2631] Compiling MLXLLM GLM4MOELite.swift
[2609/2631] Compiling MLXLLM GPTOSS.swift
[2622/2631] Compiling MLXLLM Qwen3MoE.swift
[2623/2631] Compiling MLXLLM Qwen3Next.swift
[2624/2631] Compiling MLXLLM SSM.swift
[2625/2631] Compiling MLXLLM SmolLM3.swift
[2626/2631] Compiling MLXLLM Starcoder2.swift
[2632/2679] Compiling Cast CastModel+GPUSafety.swift
[2633/2679] Compiling Cast CastModel+Generation.swift
[2634/2679] Compiling Cast CastModel+Lifecycle.swift
[2635/2681] Compiling Cast CastError.swift
[2636/2681] Compiling Cast CastModel+Extract.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()
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError()
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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,
/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()
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError()
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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,
/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()
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError()
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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,
/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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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)
[2641/2681] 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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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)
[2642/2681] 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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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)
[2643/2681] Compiling Cast CastConfiguration.swift
[2644/2681] Compiling Cast CastEnum.swift
[2648/2683] Compiling Cast JSONSchema+Excluding.swift
[2649/2683] Compiling Cast SchemaGenerator.swift
[2650/2683] Compiling Cast Castable.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()
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError()
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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,
[2651/2683] 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()
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError()
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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,
[2652/2683] Compiling Cast Instrumentation.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+GPUSafety.swift:24:5: warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError()
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError()
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
145 |                             parameters: parameters,
146 |                             context: context,
147 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
224 |                             parameters: parameters,
225 |                             context: context,
226 |                             grammar: grammar,
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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,
[2653/2683] Compiling Cast Cast.swift
[2654/2683] Compiling Cast PromptEngine.swift
[2655/2683] Compiling Cast JSONRepair.swift
[2656/2683] Compiling Cast PartialResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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)
[2657/2683] Compiling Cast PropertyWrappers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+Stream.swift:123:38: warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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)
[2658/2683] Compiling Cast CastModel.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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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
121 |                             parameters: parameters,
122 |                             context: context,
123 |                             grammar: grammar
    |                                      `- warning: capture of 'grammar' with non-sendable type 'Grammar' in a '@Sendable' closure
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)
[2659/2683] Compiling Cast Formatters.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
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
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,
[2660/2683] Compiling Cast ModelSource.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
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
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,
/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
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
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,
/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
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
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,
[2668/2683] Compiling Cast CastBench.swift
[2678/2683] Emitting module Cast
/Users/admin/builder/spi-builder-workspace/Sources/Cast/API/CastModel+GPUSafety.swift:24:5: warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError()
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError()
25 | }()
26 |
/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()
22 |
23 | private let _setupGlobalErrorHandler: Void = {
24 |     setErrorHandler(globalMLXErrorHandler)
   |     `- warning: 'setErrorHandler(_:data:dtor:)' is deprecated: please use withErrorHandler() or withError()
25 | }()
26 |
[2680/2683] Compiling Cast ValidatorSupport.swift
[2681/2683] Compiling Cast ZeroSchemaDecoder.swift
Build complete! (190.28s)
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Fetching https://github.com/ml-explore/mlx-swift-lm.git
Fetching https://github.com/huggingface/swift-transformers.git
Fetching https://github.com/petrukha-ivan/swift-json-schema.git
Fetching https://github.com/ml-explore/mlx-swift.git
Fetching https://github.com/apple/swift-collections.git from cache
Fetching https://github.com/swiftlang/swift-syntax.git from cache
[1/132] Fetching swift-json-schema
[133/11379] Fetching swift-json-schema, mlx-swift-lm
[134/18173] Fetching swift-json-schema, mlx-swift-lm, swift-transformers
[270/33216] Fetching swift-json-schema, mlx-swift-lm, swift-transformers, mlx-swift
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.13s)
Fetched https://github.com/huggingface/swift-transformers.git from cache (1.93s)
Fetched https://github.com/petrukha-ivan/swift-json-schema.git from cache (1.93s)
Fetched https://github.com/ml-explore/mlx-swift-lm.git from cache (2.18s)
Fetched https://github.com/ml-explore/mlx-swift.git from cache (2.18s)
Fetched https://github.com/apple/swift-collections.git from cache (2.28s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (2.32s)
Computing version for https://github.com/petrukha-ivan/swift-json-schema.git
Computed https://github.com/petrukha-ivan/swift-json-schema.git at 2.0.2 (2.90s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (3.20s)
Computing version for https://github.com/ml-explore/mlx-swift-lm.git
Computed https://github.com/ml-explore/mlx-swift-lm.git at 2.31.3 (0.52s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 1.2.1 (0.49s)
Fetching https://github.com/huggingface/swift-huggingface.git
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/apple/swift-crypto.git from cache
[1/2421] Fetching swift-huggingface
[50/3557] Fetching swift-huggingface, swift-jinja
[2934/8155] Fetching swift-huggingface, swift-jinja, yyjson
Fetched https://github.com/huggingface/swift-huggingface.git from cache (1.64s)
Fetched https://github.com/ibireme/yyjson.git from cache (1.64s)
Fetched https://github.com/huggingface/swift-jinja.git from cache (1.64s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.68s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (2.30s)
Computing version for https://github.com/ml-explore/mlx-swift.git
Computed https://github.com/ml-explore/mlx-swift.git at 0.31.4 (0.53s)
Fetching https://github.com/apple/swift-numerics from cache
Fetched https://github.com/apple/swift-numerics from cache (0.89s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.9.0 (1.42s)
Fetching https://github.com/huggingface/swift-xet.git
Fetching https://github.com/mattt/EventSource.git
[1/271] Fetching eventsource
[272/510] Fetching eventsource, swift-xet
Fetched https://github.com/huggingface/swift-xet.git from cache (1.12s)
Fetched https://github.com/mattt/EventSource.git from cache (1.12s)
Computing version for https://github.com/huggingface/swift-xet.git
Computed https://github.com/huggingface/swift-xet.git at 0.2.3 (1.62s)
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/apple/swift-nio-transport-services.git from cache
Fetching https://github.com/swift-server/async-http-client from cache
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (1.16s)
Fetched https://github.com/swift-server/async-http-client from cache (1.18s)
Fetched https://github.com/apple/swift-nio.git from cache (2.44s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (3.09s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.49s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (0.50s)
Fetching https://github.com/apple/swift-atomics.git from cache
Fetched https://github.com/apple/swift-atomics.git from cache (0.75s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (1.26s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (0.58s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.93s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.60s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.4.1 (0.49s)
Computing version for https://github.com/swift-server/async-http-client
Computed https://github.com/swift-server/async-http-client at 1.34.0 (0.50s)
Fetching https://github.com/apple/swift-algorithms.git from cache
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/apple/swift-nio-extras.git from cache
Fetching https://github.com/apple/swift-nio-ssl.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/apple/swift-nio-http2.git from cache
[1/5815] Fetching swift-distributed-tracing
Fetched https://github.com/apple/swift-nio-extras.git from cache (0.99s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.11s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.12s)
Fetched https://github.com/apple/swift-log.git from cache (1.14s)
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (1.20s)
Fetched https://github.com/apple/swift-algorithms.git from cache (1.20s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.101.2 (1.91s)
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-system.git from cache (1.03s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.4.1 (1.54s)
Fetching https://github.com/apple/swift-service-context.git
[1/1295] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.81s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.43s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (0.48s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.44.0 (0.51s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.1 (0.51s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.14.0 (0.49s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.7.2 (0.51s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.34.1 (0.54s)
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-http-structured-headers.git from cache
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-asn1.git from cache
Fetching https://github.com/apple/swift-http-types.git from cache
[1/2764] Fetching swift-service-lifecycle
[250/10092] Fetching swift-service-lifecycle, swift-certificates
[4891/16645] Fetching swift-service-lifecycle, swift-certificates, swift-async-algorithms
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (1.39s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.39s)
Fetched https://github.com/apple/swift-certificates.git from cache (1.39s)
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (1.41s)
Fetched https://github.com/apple/swift-asn1.git from cache (1.41s)
Fetched https://github.com/apple/swift-http-types.git from cache (1.41s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.11.0 (1.93s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.4 (0.52s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.6.0 (0.48s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.1 (2.44s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.48s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.19.2 (0.62s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.3.6 (0.48s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.0 (1.09s)
Creating working copy for https://github.com/swift-server/async-http-client
Working copy of https://github.com/swift-server/async-http-client resolved at 1.34.0
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 1.2.1
Creating working copy for https://github.com/petrukha-ivan/swift-json-schema.git
Working copy of https://github.com/petrukha-ivan/swift-json-schema.git resolved at 2.0.2
Creating working copy for https://github.com/ml-explore/mlx-swift.git
Working copy of https://github.com/ml-explore/mlx-swift.git resolved at 0.31.4
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.3.0
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.3.6
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.9.0
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.6.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.1
Creating working copy for https://github.com/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.0
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.44.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.34.1
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.7.2
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.14.0
Creating working copy for https://github.com/huggingface/swift-xet.git
Working copy of https://github.com/huggingface/swift-xet.git resolved at 0.2.3
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.1
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.0
Creating working copy for https://github.com/ml-explore/mlx-swift-lm.git
Working copy of https://github.com/ml-explore/mlx-swift-lm.git resolved at 2.31.3
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.11.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.101.2
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.19.2
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.4
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.