dependencies: [
.package(url: "https://github.com/unum-cloud/USearch", .upToNextMajor(from: "3.0.0"))
]The package compiles the Swift surface only, and depends on NumKong as a source package.
SwiftPM downloads the engine prebuilt, as the release’s USearchC XCFramework on Apple platforms and as its artifact bundle on Linux, so no C++ toolchain is needed.
A checkout builds its own with CMake and points USEARCH_SWIFT_ARTIFACT at it, relative to the package root, as NUMKONG_SWIFT_ARTIFACT points the numkong/ dependency at its own build:
cmake --preset swift
cmake --build --preset swift
USEARCH_SWIFT_ARTIFACT=build_swift/USearchC.xcframework swift build # USearchC.artifactbundle off Apple platforms