// swift-tools-version: 5.9 // // Package.swift // Zyquo MLX // // Author: Simon-Pierre Boucher // Mail: contact@spboucher.ai // import PackageDescription let package = Package( name: "ZyquoMLX", platforms: [ .macOS(.v14) ], dependencies: [ // Versions pinned per docs/MLX-RESEARCH.md §8 (verified 2026-07-30). // Released tags only — mlx-swift main requires an experimental toolchain. .package(url: "https://github.com/ml-explore/mlx-swift", .upToNextMinor(from: "0.31.6")), .package(url: "https://github.com/ml-explore/mlx-swift-lm", .upToNextMajor(from: "3.31.4")), .package(url: "https://github.com/huggingface/swift-huggingface", from: "0.9.0"), .package(url: "https://github.com/huggingface/swift-transformers", from: "1.3.0"), ], targets: [ .executableTarget( name: "ZyquoMLX", dependencies: [ .product(name: "MLX", package: "mlx-swift"), .product(name: "MLXNN", package: "mlx-swift"), .product(name: "MLXOptimizers", package: "mlx-swift"), .product(name: "MLXRandom", package: "mlx-swift"), .product(name: "MLXLMCommon", package: "mlx-swift-lm"), .product(name: "MLXLLM", package: "mlx-swift-lm"), .product(name: "MLXVLM", package: "mlx-swift-lm"), .product(name: "MLXEmbedders", package: "mlx-swift-lm"), .product(name: "MLXHuggingFace", package: "mlx-swift-lm"), .product(name: "HuggingFace", package: "swift-huggingface"), .product(name: "Tokenizers", package: "swift-transformers"), ], path: "Sources/ZyquoMLX", resources: [ // Pinned Python helper scripts (PyBridge) — versioned with the // app, never fetched remotely (docs/BUILD.md §3.4). .copy("PyBridge/scripts") ] ) ] )