Build Information
Failed to build ChromaHash, reference v0.7.2 (0846f0), with Swift 6.3 for Android on 1 Sep 2026 07:00:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/visualcommons/chromahash.git
Reference: v0.7.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/visualcommons/chromahash
* tag v0.7.2 -> FETCH_HEAD
HEAD is now at 0846f00 build(swift): pin xcframework for v0.7.2
Cloned https://github.com/visualcommons/chromahash.git
Revision (git rev-parse @):
0846f00a9a96c235f6bb643adf444037d93508c4
SUCCESS checkout https://github.com/visualcommons/chromahash.git at v0.7.2
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/visualcommons/chromahash.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:2b782c87e0bdf114eb0da12f6379a346f06569d6991407581da7dc03d1813adf
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Downloading binary artifact https://github.com/visualcommons/chromahash/releases/download/v0.7.2/ChromaHashFFI.xcframework.zip
[1369/52920822] Downloading https://github.com/visualcommons/chromahash/releases/download/v0.7.2/ChromaHashFFI.xcframework.zip
Downloaded https://github.com/visualcommons/chromahash/releases/download/v0.7.2/ChromaHashFFI.xcframework.zip (4.39s)
Building for debugging...
[0/13] Write sources
[4/13] Write swift-version-272D24FF697CF451.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/15] Emitting module ChromaHashBindings
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:14:23: error: cannot find type 'RustBuffer' in scope
12 | #endif
13 |
14 | fileprivate extension RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
15 | // Allocate a new buffer, copying the contents of a `UInt8` array.
16 | init(bytes: [UInt8]) {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:38:23: error: cannot find type 'ForeignBytes' in scope
36 | }
37 |
38 | fileprivate extension ForeignBytes {
| `- error: cannot find type 'ForeignBytes' in scope
39 | init(bufferPointer: UnsafeBufferPointer<UInt8>) {
40 | self.init(len: Int32(bufferPointer.count), data: bufferPointer.baseAddress)
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:52:22: error: cannot find type 'RustBuffer' in scope
50 |
51 | fileprivate extension Data {
52 | init(rustBuffer: RustBuffer) {
| `- error: cannot find type 'RustBuffer' in scope
53 | self.init(
54 | bytesNoCopy: rustBuffer.data!,
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:190:76: error: cannot find type 'RustBuffer' in scope
188 | // Types conforming to `FfiConverterRustBuffer` lift and lower into a `RustBuffer`.
189 | // Used for complex types where it's hard to write a custom lift/lower.
190 | fileprivate protocol FfiConverterRustBuffer: FfiConverter where FfiType == RustBuffer {}
| `- error: cannot find type 'RustBuffer' in scope
191 |
192 | extension FfiConverterRustBuffer {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:196:36: error: cannot find type 'RustBuffer' in scope
194 | @_documentation(visibility: private)
195 | #endif
196 | public static func lift(_ buf: RustBuffer) throws -> SwiftType {
| `- error: cannot find type 'RustBuffer' in scope
197 | var reader = createReader(data: Data(rustBuffer: buf))
198 | let value = try read(from: &reader)
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:209:53: error: cannot find type 'RustBuffer' in scope
207 | @_documentation(visibility: private)
208 | #endif
209 | public static func lower(_ value: SwiftType) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
210 | var writer = createWriter()
211 | write(value, into: &writer)
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:256:23: error: cannot find type 'RustCallStatus' in scope
254 | fileprivate let CALL_CANCELLED: Int8 = 3
255 |
256 | fileprivate extension RustCallStatus {
| `- error: cannot find type 'RustCallStatus' in scope
257 | init() {
258 | self.init(
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:269:60: error: cannot find type 'RustCallStatus' in scope
267 | }
268 |
269 | private func rustCall<T>(_ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
| `- error: cannot find type 'RustCallStatus' in scope
270 | let neverThrow: ((RustBuffer) throws -> Never)? = nil
271 | return try makeRustCall(callback, errorHandler: neverThrow)
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:275:32: error: cannot find type 'RustBuffer' in scope
273 |
274 | private func rustCallWithError<T, E: Swift.Error>(
275 | _ errorHandler: @escaping (RustBuffer) throws -> E,
| `- error: cannot find type 'RustBuffer' in scope
276 | _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
277 | try makeRustCall(callback, errorHandler: errorHandler)
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:276:39: error: cannot find type 'RustCallStatus' in scope
274 | private func rustCallWithError<T, E: Swift.Error>(
275 | _ errorHandler: @escaping (RustBuffer) throws -> E,
276 | _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
| `- error: cannot find type 'RustCallStatus' in scope
277 | try makeRustCall(callback, errorHandler: errorHandler)
278 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:281:39: error: cannot find type 'RustCallStatus' in scope
279 |
280 | private func makeRustCall<T, E: Swift.Error>(
281 | _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T,
| `- error: cannot find type 'RustCallStatus' in scope
282 | errorHandler: ((RustBuffer) throws -> E)?
283 | ) throws -> T {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:282:21: error: cannot find type 'RustBuffer' in scope
280 | private func makeRustCall<T, E: Swift.Error>(
281 | _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T,
282 | errorHandler: ((RustBuffer) throws -> E)?
| `- error: cannot find type 'RustBuffer' in scope
283 | ) throws -> T {
284 | uniffiEnsureChromahashUniffiInitialized()
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:292:17: error: cannot find type 'RustCallStatus' in scope
290 |
291 | private func uniffiCheckCallStatus<E: Swift.Error>(
292 | callStatus: RustCallStatus,
| `- error: cannot find type 'RustCallStatus' in scope
293 | errorHandler: ((RustBuffer) throws -> E)?
294 | ) throws {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:293:21: error: cannot find type 'RustBuffer' in scope
291 | private func uniffiCheckCallStatus<E: Swift.Error>(
292 | callStatus: RustCallStatus,
293 | errorHandler: ((RustBuffer) throws -> E)?
| `- error: cannot find type 'RustBuffer' in scope
294 | ) throws {
295 | switch callStatus.code {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:327:38: error: cannot find type 'RustCallStatus' in scope
325 |
326 | private func uniffiTraitInterfaceCall<T>(
327 | callStatus: UnsafeMutablePointer<RustCallStatus>,
| `- error: cannot find type 'RustCallStatus' in scope
328 | makeCall: () throws -> T,
329 | writeReturn: (T) -> ()
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:340:38: error: cannot find type 'RustCallStatus' in scope
338 |
339 | private func uniffiTraitInterfaceCallWithError<T, E>(
340 | callStatus: UnsafeMutablePointer<RustCallStatus>,
| `- error: cannot find type 'RustCallStatus' in scope
341 | makeCall: () throws -> T,
342 | writeReturn: (T) -> (),
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:343:24: error: cannot find type 'RustBuffer' in scope
341 | makeCall: () throws -> T,
342 | writeReturn: (T) -> (),
343 | lowerError: (E) -> RustBuffer
| `- error: cannot find type 'RustBuffer' in scope
344 | ) {
345 | do {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:472:25: error: cannot find type 'RustBuffer' in scope
470 | fileprivate struct FfiConverterString: FfiConverter {
471 | typealias SwiftType = String
472 | typealias FfiType = RustBuffer
| `- error: cannot find type 'RustBuffer' in scope
473 |
474 | public static func lift(_ value: RustBuffer) throws -> String {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:474:38: error: cannot find type 'RustBuffer' in scope
472 | typealias FfiType = RustBuffer
473 |
474 | public static func lift(_ value: RustBuffer) throws -> String {
| `- error: cannot find type 'RustBuffer' in scope
475 | defer {
476 | value.deallocate()
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:489:50: error: cannot find type 'RustBuffer' in scope
487 | }
488 |
489 | public static func lower(_ value: String) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
490 | return value.utf8CString.withUnsafeBufferPointer { ptr in
491 | // The swift string gives us int8_t, we want uint8_t.
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:470:20: error: type 'FfiConverterString' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
162 |
:
468 | @_documentation(visibility: private)
469 | #endif
470 | fileprivate struct FfiConverterString: FfiConverter {
| |- error: type 'FfiConverterString' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
471 | typealias SwiftType = String
472 | typealias FfiType = RustBuffer
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:516:20: error: type 'FfiConverterData' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
162 |
:
514 | @_documentation(visibility: private)
515 | #endif
516 | fileprivate struct FfiConverterData: FfiConverterRustBuffer {
| |- error: type 'FfiConverterData' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
517 | typealias SwiftType = Data
518 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:997:15: error: type 'FfiConverterTypeDecodeResult' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
| `- note: protocol requires nested type 'SwiftType'
162 |
163 | static func lift(_ value: FfiType) throws -> SwiftType
:
995 | @_documentation(visibility: private)
996 | #endif
997 | public struct FfiConverterTypeDecodeResult: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeDecodeResult' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
998 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DecodeResult {
999 | return
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1018:54: error: cannot find type 'RustBuffer' in scope
1016 | @_documentation(visibility: private)
1017 | #endif
1018 | public func FfiConverterTypeDecodeResult_lift(_ buf: RustBuffer) throws -> DecodeResult {
| `- error: cannot find type 'RustBuffer' in scope
1019 | return try FfiConverterTypeDecodeResult.lift(buf)
1020 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1025:74: error: cannot find type 'RustBuffer' in scope
1023 | @_documentation(visibility: private)
1024 | #endif
1025 | public func FfiConverterTypeDecodeResult_lower(_ value: DecodeResult) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1026 | return FfiConverterTypeDecodeResult.lower(value)
1027 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1083:15: error: type 'FfiConverterTypeImageInput' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
| `- note: protocol requires nested type 'SwiftType'
162 |
163 | static func lift(_ value: FfiType) throws -> SwiftType
:
1081 | @_documentation(visibility: private)
1082 | #endif
1083 | public struct FfiConverterTypeImageInput: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeImageInput' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1084 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ImageInput {
1085 | return
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1108:52: error: cannot find type 'RustBuffer' in scope
1106 | @_documentation(visibility: private)
1107 | #endif
1108 | public func FfiConverterTypeImageInput_lift(_ buf: RustBuffer) throws -> ImageInput {
| `- error: cannot find type 'RustBuffer' in scope
1109 | return try FfiConverterTypeImageInput.lift(buf)
1110 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1115:70: error: cannot find type 'RustBuffer' in scope
1113 | @_documentation(visibility: private)
1114 | #endif
1115 | public func FfiConverterTypeImageInput_lower(_ value: ImageInput) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1116 | return FfiConverterTypeImageInput.lower(value)
1117 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1150:15: error: type 'FfiConverterTypeRgbaColor' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
| `- note: protocol requires nested type 'SwiftType'
162 |
163 | static func lift(_ value: FfiType) throws -> SwiftType
:
1148 | @_documentation(visibility: private)
1149 | #endif
1150 | public struct FfiConverterTypeRgbaColor: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeRgbaColor' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1151 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> RgbaColor {
1152 | return
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1173:51: error: cannot find type 'RustBuffer' in scope
1171 | @_documentation(visibility: private)
1172 | #endif
1173 | public func FfiConverterTypeRgbaColor_lift(_ buf: RustBuffer) throws -> RgbaColor {
| `- error: cannot find type 'RustBuffer' in scope
1174 | return try FfiConverterTypeRgbaColor.lift(buf)
1175 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1180:68: error: cannot find type 'RustBuffer' in scope
1178 | @_documentation(visibility: private)
1179 | #endif
1180 | public func FfiConverterTypeRgbaColor_lower(_ value: RgbaColor) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1181 | return FfiConverterTypeRgbaColor.lower(value)
1182 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1239:15: error: type 'FfiConverterTypeChromaHashError' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
162 |
:
1237 | @_documentation(visibility: private)
1238 | #endif
1239 | public struct FfiConverterTypeChromaHashError: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeChromaHashError' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1240 | typealias SwiftType = ChromaHashError
1241 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1300:57: error: cannot find type 'RustBuffer' in scope
1298 | @_documentation(visibility: private)
1299 | #endif
1300 | public func FfiConverterTypeChromaHashError_lift(_ buf: RustBuffer) throws -> ChromaHashError {
| `- error: cannot find type 'RustBuffer' in scope
1301 | return try FfiConverterTypeChromaHashError.lift(buf)
1302 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1307:80: error: cannot find type 'RustBuffer' in scope
1305 | @_documentation(visibility: private)
1306 | #endif
1307 | public func FfiConverterTypeChromaHashError_lower(_ value: ChromaHashError) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1308 | return FfiConverterTypeChromaHashError.lower(value)
1309 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1338:15: error: type 'FfiConverterTypeGamut' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
162 |
:
1336 | @_documentation(visibility: private)
1337 | #endif
1338 | public struct FfiConverterTypeGamut: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeGamut' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1339 | typealias SwiftType = Gamut
1340 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1390:47: error: cannot find type 'RustBuffer' in scope
1388 | @_documentation(visibility: private)
1389 | #endif
1390 | public func FfiConverterTypeGamut_lift(_ buf: RustBuffer) throws -> Gamut {
| `- error: cannot find type 'RustBuffer' in scope
1391 | return try FfiConverterTypeGamut.lift(buf)
1392 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1397:60: error: cannot find type 'RustBuffer' in scope
1395 | @_documentation(visibility: private)
1396 | #endif
1397 | public func FfiConverterTypeGamut_lower(_ value: Gamut) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1398 | return FfiConverterTypeGamut.lower(value)
1399 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1405:20: error: type 'FfiConverterSequenceTypeChromaHash' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
162 |
:
1403 | @_documentation(visibility: private)
1404 | #endif
1405 | fileprivate struct FfiConverterSequenceTypeChromaHash: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeChromaHash' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1406 | typealias SwiftType = [ChromaHash]
1407 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1430:20: error: type 'FfiConverterSequenceTypeImageInput' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
162 |
:
1428 | @_documentation(visibility: private)
1429 | #endif
1430 | fileprivate struct FfiConverterSequenceTypeImageInput: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeImageInput' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1431 | typealias SwiftType = [ImageInput]
1432 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1499:40: error: cannot find 'ffi_chromahash_uniffi_uniffi_contract_version' in scope
1497 | let bindings_contract_version = 30
1498 | // Get the scaffolding contract version by calling the into the dylib
1499 | let scaffolding_contract_version = ffi_chromahash_uniffi_uniffi_contract_version()
| `- error: cannot find 'ffi_chromahash_uniffi_uniffi_contract_version' in scope
1500 | if bindings_contract_version != scaffolding_contract_version {
1501 | return InitializationResult.contractVersionMismatch
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1503:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_func_compact_tier' in scope
1501 | return InitializationResult.contractVersionMismatch
1502 | }
1503 | if (uniffi_chromahash_uniffi_checksum_func_compact_tier() != 19023) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_func_compact_tier' in scope
1504 | return InitializationResult.apiChecksumMismatch
1505 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1506:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_func_default_tier' in scope
1504 | return InitializationResult.apiChecksumMismatch
1505 | }
1506 | if (uniffi_chromahash_uniffi_checksum_func_default_tier() != 45813) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_func_default_tier' in scope
1507 | return InitializationResult.apiChecksumMismatch
1508 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1509:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_func_format_version' in scope
1507 | return InitializationResult.apiChecksumMismatch
1508 | }
1509 | if (uniffi_chromahash_uniffi_checksum_func_format_version() != 31955) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_func_format_version' in scope
1510 | return InitializationResult.apiChecksumMismatch
1511 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1512:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_func_max_tier' in scope
1510 | return InitializationResult.apiChecksumMismatch
1511 | }
1512 | if (uniffi_chromahash_uniffi_checksum_func_max_tier() != 43139) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_func_max_tier' in scope
1513 | return InitializationResult.apiChecksumMismatch
1514 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1515:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_batchencoder_encode_batch' in scope
1513 | return InitializationResult.apiChecksumMismatch
1514 | }
1515 | if (uniffi_chromahash_uniffi_checksum_method_batchencoder_encode_batch() != 42834) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_batchencoder_encode_batch' in scope
1516 | return InitializationResult.apiChecksumMismatch
1517 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1518:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_as_bytes' in scope
1516 | return InitializationResult.apiChecksumMismatch
1517 | }
1518 | if (uniffi_chromahash_uniffi_checksum_method_chromahash_as_bytes() != 7674) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_as_bytes' in scope
1519 | return InitializationResult.apiChecksumMismatch
1520 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1521:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_average_color' in scope
1519 | return InitializationResult.apiChecksumMismatch
1520 | }
1521 | if (uniffi_chromahash_uniffi_checksum_method_chromahash_average_color() != 8599) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_average_color' in scope
1522 | return InitializationResult.apiChecksumMismatch
1523 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1524:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode' in scope
1522 | return InitializationResult.apiChecksumMismatch
1523 | }
1524 | if (uniffi_chromahash_uniffi_checksum_method_chromahash_decode() != 1990) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode' in scope
1525 | return InitializationResult.apiChecksumMismatch
1526 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1527:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode_capped' in scope
1525 | return InitializationResult.apiChecksumMismatch
1526 | }
1527 | if (uniffi_chromahash_uniffi_checksum_method_chromahash_decode_capped() != 61997) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode_capped' in scope
1528 | return InitializationResult.apiChecksumMismatch
1529 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1530:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode_capped_to' in scope
1528 | return InitializationResult.apiChecksumMismatch
1529 | }
1530 | if (uniffi_chromahash_uniffi_checksum_method_chromahash_decode_capped_to() != 18999) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode_capped_to' in scope
1531 | return InitializationResult.apiChecksumMismatch
1532 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1533:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode_to' in scope
1531 | return InitializationResult.apiChecksumMismatch
1532 | }
1533 | if (uniffi_chromahash_uniffi_checksum_method_chromahash_decode_to() != 64313) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode_to' in scope
1534 | return InitializationResult.apiChecksumMismatch
1535 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1536:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_batchencoder_new' in scope
1534 | return InitializationResult.apiChecksumMismatch
1535 | }
1536 | if (uniffi_chromahash_uniffi_checksum_constructor_batchencoder_new() != 49572) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_batchencoder_new' in scope
1537 | return InitializationResult.apiChecksumMismatch
1538 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1539:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_batchencoder_with_threads' in scope
1537 | return InitializationResult.apiChecksumMismatch
1538 | }
1539 | if (uniffi_chromahash_uniffi_checksum_constructor_batchencoder_with_threads() != 10330) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_batchencoder_with_threads' in scope
1540 | return InitializationResult.apiChecksumMismatch
1541 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1542:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_chromahash_encode' in scope
1540 | return InitializationResult.apiChecksumMismatch
1541 | }
1542 | if (uniffi_chromahash_uniffi_checksum_constructor_chromahash_encode() != 23354) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_chromahash_encode' in scope
1543 | return InitializationResult.apiChecksumMismatch
1544 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1545:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_chromahash_encode_with_quality' in scope
1543 | return InitializationResult.apiChecksumMismatch
1544 | }
1545 | if (uniffi_chromahash_uniffi_checksum_constructor_chromahash_encode_with_quality() != 17637) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_chromahash_encode_with_quality' in scope
1546 | return InitializationResult.apiChecksumMismatch
1547 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1548:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_chromahash_from_bytes' in scope
1546 | return InitializationResult.apiChecksumMismatch
1547 | }
1548 | if (uniffi_chromahash_uniffi_checksum_constructor_chromahash_from_bytes() != 29828) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_chromahash_from_bytes' in scope
1549 | return InitializationResult.apiChecksumMismatch
1550 | }
[7/15] Compiling ChromaHashBindings chromahash_uniffi.swift
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:14:23: error: cannot find type 'RustBuffer' in scope
12 | #endif
13 |
14 | fileprivate extension RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
15 | // Allocate a new buffer, copying the contents of a `UInt8` array.
16 | init(bytes: [UInt8]) {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:38:23: error: cannot find type 'ForeignBytes' in scope
36 | }
37 |
38 | fileprivate extension ForeignBytes {
| `- error: cannot find type 'ForeignBytes' in scope
39 | init(bufferPointer: UnsafeBufferPointer<UInt8>) {
40 | self.init(len: Int32(bufferPointer.count), data: bufferPointer.baseAddress)
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:52:22: error: cannot find type 'RustBuffer' in scope
50 |
51 | fileprivate extension Data {
52 | init(rustBuffer: RustBuffer) {
| `- error: cannot find type 'RustBuffer' in scope
53 | self.init(
54 | bytesNoCopy: rustBuffer.data!,
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:190:76: error: cannot find type 'RustBuffer' in scope
188 | // Types conforming to `FfiConverterRustBuffer` lift and lower into a `RustBuffer`.
189 | // Used for complex types where it's hard to write a custom lift/lower.
190 | fileprivate protocol FfiConverterRustBuffer: FfiConverter where FfiType == RustBuffer {}
| `- error: cannot find type 'RustBuffer' in scope
191 |
192 | extension FfiConverterRustBuffer {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:196:36: error: cannot find type 'RustBuffer' in scope
194 | @_documentation(visibility: private)
195 | #endif
196 | public static func lift(_ buf: RustBuffer) throws -> SwiftType {
| `- error: cannot find type 'RustBuffer' in scope
197 | var reader = createReader(data: Data(rustBuffer: buf))
198 | let value = try read(from: &reader)
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:209:53: error: cannot find type 'RustBuffer' in scope
207 | @_documentation(visibility: private)
208 | #endif
209 | public static func lower(_ value: SwiftType) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
210 | var writer = createWriter()
211 | write(value, into: &writer)
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:256:23: error: cannot find type 'RustCallStatus' in scope
254 | fileprivate let CALL_CANCELLED: Int8 = 3
255 |
256 | fileprivate extension RustCallStatus {
| `- error: cannot find type 'RustCallStatus' in scope
257 | init() {
258 | self.init(
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:269:60: error: cannot find type 'RustCallStatus' in scope
267 | }
268 |
269 | private func rustCall<T>(_ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
| `- error: cannot find type 'RustCallStatus' in scope
270 | let neverThrow: ((RustBuffer) throws -> Never)? = nil
271 | return try makeRustCall(callback, errorHandler: neverThrow)
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:275:32: error: cannot find type 'RustBuffer' in scope
273 |
274 | private func rustCallWithError<T, E: Swift.Error>(
275 | _ errorHandler: @escaping (RustBuffer) throws -> E,
| `- error: cannot find type 'RustBuffer' in scope
276 | _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
277 | try makeRustCall(callback, errorHandler: errorHandler)
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:276:39: error: cannot find type 'RustCallStatus' in scope
274 | private func rustCallWithError<T, E: Swift.Error>(
275 | _ errorHandler: @escaping (RustBuffer) throws -> E,
276 | _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
| `- error: cannot find type 'RustCallStatus' in scope
277 | try makeRustCall(callback, errorHandler: errorHandler)
278 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:281:39: error: cannot find type 'RustCallStatus' in scope
279 |
280 | private func makeRustCall<T, E: Swift.Error>(
281 | _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T,
| `- error: cannot find type 'RustCallStatus' in scope
282 | errorHandler: ((RustBuffer) throws -> E)?
283 | ) throws -> T {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:282:21: error: cannot find type 'RustBuffer' in scope
280 | private func makeRustCall<T, E: Swift.Error>(
281 | _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T,
282 | errorHandler: ((RustBuffer) throws -> E)?
| `- error: cannot find type 'RustBuffer' in scope
283 | ) throws -> T {
284 | uniffiEnsureChromahashUniffiInitialized()
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:292:17: error: cannot find type 'RustCallStatus' in scope
290 |
291 | private func uniffiCheckCallStatus<E: Swift.Error>(
292 | callStatus: RustCallStatus,
| `- error: cannot find type 'RustCallStatus' in scope
293 | errorHandler: ((RustBuffer) throws -> E)?
294 | ) throws {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:293:21: error: cannot find type 'RustBuffer' in scope
291 | private func uniffiCheckCallStatus<E: Swift.Error>(
292 | callStatus: RustCallStatus,
293 | errorHandler: ((RustBuffer) throws -> E)?
| `- error: cannot find type 'RustBuffer' in scope
294 | ) throws {
295 | switch callStatus.code {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:327:38: error: cannot find type 'RustCallStatus' in scope
325 |
326 | private func uniffiTraitInterfaceCall<T>(
327 | callStatus: UnsafeMutablePointer<RustCallStatus>,
| `- error: cannot find type 'RustCallStatus' in scope
328 | makeCall: () throws -> T,
329 | writeReturn: (T) -> ()
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:340:38: error: cannot find type 'RustCallStatus' in scope
338 |
339 | private func uniffiTraitInterfaceCallWithError<T, E>(
340 | callStatus: UnsafeMutablePointer<RustCallStatus>,
| `- error: cannot find type 'RustCallStatus' in scope
341 | makeCall: () throws -> T,
342 | writeReturn: (T) -> (),
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:343:24: error: cannot find type 'RustBuffer' in scope
341 | makeCall: () throws -> T,
342 | writeReturn: (T) -> (),
343 | lowerError: (E) -> RustBuffer
| `- error: cannot find type 'RustBuffer' in scope
344 | ) {
345 | do {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:472:25: error: cannot find type 'RustBuffer' in scope
470 | fileprivate struct FfiConverterString: FfiConverter {
471 | typealias SwiftType = String
472 | typealias FfiType = RustBuffer
| `- error: cannot find type 'RustBuffer' in scope
473 |
474 | public static func lift(_ value: RustBuffer) throws -> String {
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:474:38: error: cannot find type 'RustBuffer' in scope
472 | typealias FfiType = RustBuffer
473 |
474 | public static func lift(_ value: RustBuffer) throws -> String {
| `- error: cannot find type 'RustBuffer' in scope
475 | defer {
476 | value.deallocate()
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:489:50: error: cannot find type 'RustBuffer' in scope
487 | }
488 |
489 | public static func lower(_ value: String) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
490 | return value.utf8CString.withUnsafeBufferPointer { ptr in
491 | // The swift string gives us int8_t, we want uint8_t.
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:470:20: error: type 'FfiConverterString' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
162 |
:
468 | @_documentation(visibility: private)
469 | #endif
470 | fileprivate struct FfiConverterString: FfiConverter {
| |- error: type 'FfiConverterString' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
471 | typealias SwiftType = String
472 | typealias FfiType = RustBuffer
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:516:20: error: type 'FfiConverterData' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
162 |
:
514 | @_documentation(visibility: private)
515 | #endif
516 | fileprivate struct FfiConverterData: FfiConverterRustBuffer {
| |- error: type 'FfiConverterData' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
517 | typealias SwiftType = Data
518 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:997:15: error: type 'FfiConverterTypeDecodeResult' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
| `- note: protocol requires nested type 'SwiftType'
162 |
163 | static func lift(_ value: FfiType) throws -> SwiftType
:
995 | @_documentation(visibility: private)
996 | #endif
997 | public struct FfiConverterTypeDecodeResult: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeDecodeResult' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
998 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DecodeResult {
999 | return
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1018:54: error: cannot find type 'RustBuffer' in scope
1016 | @_documentation(visibility: private)
1017 | #endif
1018 | public func FfiConverterTypeDecodeResult_lift(_ buf: RustBuffer) throws -> DecodeResult {
| `- error: cannot find type 'RustBuffer' in scope
1019 | return try FfiConverterTypeDecodeResult.lift(buf)
1020 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1025:74: error: cannot find type 'RustBuffer' in scope
1023 | @_documentation(visibility: private)
1024 | #endif
1025 | public func FfiConverterTypeDecodeResult_lower(_ value: DecodeResult) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1026 | return FfiConverterTypeDecodeResult.lower(value)
1027 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1083:15: error: type 'FfiConverterTypeImageInput' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
| `- note: protocol requires nested type 'SwiftType'
162 |
163 | static func lift(_ value: FfiType) throws -> SwiftType
:
1081 | @_documentation(visibility: private)
1082 | #endif
1083 | public struct FfiConverterTypeImageInput: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeImageInput' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1084 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ImageInput {
1085 | return
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1108:52: error: cannot find type 'RustBuffer' in scope
1106 | @_documentation(visibility: private)
1107 | #endif
1108 | public func FfiConverterTypeImageInput_lift(_ buf: RustBuffer) throws -> ImageInput {
| `- error: cannot find type 'RustBuffer' in scope
1109 | return try FfiConverterTypeImageInput.lift(buf)
1110 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1115:70: error: cannot find type 'RustBuffer' in scope
1113 | @_documentation(visibility: private)
1114 | #endif
1115 | public func FfiConverterTypeImageInput_lower(_ value: ImageInput) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1116 | return FfiConverterTypeImageInput.lower(value)
1117 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1150:15: error: type 'FfiConverterTypeRgbaColor' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
| `- note: protocol requires nested type 'SwiftType'
162 |
163 | static func lift(_ value: FfiType) throws -> SwiftType
:
1148 | @_documentation(visibility: private)
1149 | #endif
1150 | public struct FfiConverterTypeRgbaColor: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeRgbaColor' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1151 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> RgbaColor {
1152 | return
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1173:51: error: cannot find type 'RustBuffer' in scope
1171 | @_documentation(visibility: private)
1172 | #endif
1173 | public func FfiConverterTypeRgbaColor_lift(_ buf: RustBuffer) throws -> RgbaColor {
| `- error: cannot find type 'RustBuffer' in scope
1174 | return try FfiConverterTypeRgbaColor.lift(buf)
1175 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1180:68: error: cannot find type 'RustBuffer' in scope
1178 | @_documentation(visibility: private)
1179 | #endif
1180 | public func FfiConverterTypeRgbaColor_lower(_ value: RgbaColor) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1181 | return FfiConverterTypeRgbaColor.lower(value)
1182 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1239:15: error: type 'FfiConverterTypeChromaHashError' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
162 |
:
1237 | @_documentation(visibility: private)
1238 | #endif
1239 | public struct FfiConverterTypeChromaHashError: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeChromaHashError' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1240 | typealias SwiftType = ChromaHashError
1241 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1300:57: error: cannot find type 'RustBuffer' in scope
1298 | @_documentation(visibility: private)
1299 | #endif
1300 | public func FfiConverterTypeChromaHashError_lift(_ buf: RustBuffer) throws -> ChromaHashError {
| `- error: cannot find type 'RustBuffer' in scope
1301 | return try FfiConverterTypeChromaHashError.lift(buf)
1302 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1307:80: error: cannot find type 'RustBuffer' in scope
1305 | @_documentation(visibility: private)
1306 | #endif
1307 | public func FfiConverterTypeChromaHashError_lower(_ value: ChromaHashError) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1308 | return FfiConverterTypeChromaHashError.lower(value)
1309 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1338:15: error: type 'FfiConverterTypeGamut' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
162 |
:
1336 | @_documentation(visibility: private)
1337 | #endif
1338 | public struct FfiConverterTypeGamut: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeGamut' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1339 | typealias SwiftType = Gamut
1340 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1390:47: error: cannot find type 'RustBuffer' in scope
1388 | @_documentation(visibility: private)
1389 | #endif
1390 | public func FfiConverterTypeGamut_lift(_ buf: RustBuffer) throws -> Gamut {
| `- error: cannot find type 'RustBuffer' in scope
1391 | return try FfiConverterTypeGamut.lift(buf)
1392 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1397:60: error: cannot find type 'RustBuffer' in scope
1395 | @_documentation(visibility: private)
1396 | #endif
1397 | public func FfiConverterTypeGamut_lower(_ value: Gamut) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1398 | return FfiConverterTypeGamut.lower(value)
1399 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1405:20: error: type 'FfiConverterSequenceTypeChromaHash' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
162 |
:
1403 | @_documentation(visibility: private)
1404 | #endif
1405 | fileprivate struct FfiConverterSequenceTypeChromaHash: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeChromaHash' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1406 | typealias SwiftType = [ChromaHash]
1407 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1430:20: error: type 'FfiConverterSequenceTypeImageInput' does not conform to protocol 'FfiConverter'
158 | // analogous to the Rust trait of the same name.
159 | fileprivate protocol FfiConverter {
160 | associatedtype FfiType
| `- note: protocol requires nested type 'FfiType'
161 | associatedtype SwiftType
162 |
:
1428 | @_documentation(visibility: private)
1429 | #endif
1430 | fileprivate struct FfiConverterSequenceTypeImageInput: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeImageInput' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1431 | typealias SwiftType = [ImageInput]
1432 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1499:40: error: cannot find 'ffi_chromahash_uniffi_uniffi_contract_version' in scope
1497 | let bindings_contract_version = 30
1498 | // Get the scaffolding contract version by calling the into the dylib
1499 | let scaffolding_contract_version = ffi_chromahash_uniffi_uniffi_contract_version()
| `- error: cannot find 'ffi_chromahash_uniffi_uniffi_contract_version' in scope
1500 | if bindings_contract_version != scaffolding_contract_version {
1501 | return InitializationResult.contractVersionMismatch
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1503:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_func_compact_tier' in scope
1501 | return InitializationResult.contractVersionMismatch
1502 | }
1503 | if (uniffi_chromahash_uniffi_checksum_func_compact_tier() != 19023) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_func_compact_tier' in scope
1504 | return InitializationResult.apiChecksumMismatch
1505 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1506:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_func_default_tier' in scope
1504 | return InitializationResult.apiChecksumMismatch
1505 | }
1506 | if (uniffi_chromahash_uniffi_checksum_func_default_tier() != 45813) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_func_default_tier' in scope
1507 | return InitializationResult.apiChecksumMismatch
1508 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1509:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_func_format_version' in scope
1507 | return InitializationResult.apiChecksumMismatch
1508 | }
1509 | if (uniffi_chromahash_uniffi_checksum_func_format_version() != 31955) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_func_format_version' in scope
1510 | return InitializationResult.apiChecksumMismatch
1511 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1512:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_func_max_tier' in scope
1510 | return InitializationResult.apiChecksumMismatch
1511 | }
1512 | if (uniffi_chromahash_uniffi_checksum_func_max_tier() != 43139) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_func_max_tier' in scope
1513 | return InitializationResult.apiChecksumMismatch
1514 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1515:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_batchencoder_encode_batch' in scope
1513 | return InitializationResult.apiChecksumMismatch
1514 | }
1515 | if (uniffi_chromahash_uniffi_checksum_method_batchencoder_encode_batch() != 42834) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_batchencoder_encode_batch' in scope
1516 | return InitializationResult.apiChecksumMismatch
1517 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1518:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_as_bytes' in scope
1516 | return InitializationResult.apiChecksumMismatch
1517 | }
1518 | if (uniffi_chromahash_uniffi_checksum_method_chromahash_as_bytes() != 7674) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_as_bytes' in scope
1519 | return InitializationResult.apiChecksumMismatch
1520 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1521:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_average_color' in scope
1519 | return InitializationResult.apiChecksumMismatch
1520 | }
1521 | if (uniffi_chromahash_uniffi_checksum_method_chromahash_average_color() != 8599) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_average_color' in scope
1522 | return InitializationResult.apiChecksumMismatch
1523 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1524:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode' in scope
1522 | return InitializationResult.apiChecksumMismatch
1523 | }
1524 | if (uniffi_chromahash_uniffi_checksum_method_chromahash_decode() != 1990) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode' in scope
1525 | return InitializationResult.apiChecksumMismatch
1526 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1527:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode_capped' in scope
1525 | return InitializationResult.apiChecksumMismatch
1526 | }
1527 | if (uniffi_chromahash_uniffi_checksum_method_chromahash_decode_capped() != 61997) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode_capped' in scope
1528 | return InitializationResult.apiChecksumMismatch
1529 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1530:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode_capped_to' in scope
1528 | return InitializationResult.apiChecksumMismatch
1529 | }
1530 | if (uniffi_chromahash_uniffi_checksum_method_chromahash_decode_capped_to() != 18999) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode_capped_to' in scope
1531 | return InitializationResult.apiChecksumMismatch
1532 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1533:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode_to' in scope
1531 | return InitializationResult.apiChecksumMismatch
1532 | }
1533 | if (uniffi_chromahash_uniffi_checksum_method_chromahash_decode_to() != 64313) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_method_chromahash_decode_to' in scope
1534 | return InitializationResult.apiChecksumMismatch
1535 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1536:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_batchencoder_new' in scope
1534 | return InitializationResult.apiChecksumMismatch
1535 | }
1536 | if (uniffi_chromahash_uniffi_checksum_constructor_batchencoder_new() != 49572) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_batchencoder_new' in scope
1537 | return InitializationResult.apiChecksumMismatch
1538 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1539:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_batchencoder_with_threads' in scope
1537 | return InitializationResult.apiChecksumMismatch
1538 | }
1539 | if (uniffi_chromahash_uniffi_checksum_constructor_batchencoder_with_threads() != 10330) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_batchencoder_with_threads' in scope
1540 | return InitializationResult.apiChecksumMismatch
1541 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1542:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_chromahash_encode' in scope
1540 | return InitializationResult.apiChecksumMismatch
1541 | }
1542 | if (uniffi_chromahash_uniffi_checksum_constructor_chromahash_encode() != 23354) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_chromahash_encode' in scope
1543 | return InitializationResult.apiChecksumMismatch
1544 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1545:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_chromahash_encode_with_quality' in scope
1543 | return InitializationResult.apiChecksumMismatch
1544 | }
1545 | if (uniffi_chromahash_uniffi_checksum_constructor_chromahash_encode_with_quality() != 17637) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_chromahash_encode_with_quality' in scope
1546 | return InitializationResult.apiChecksumMismatch
1547 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1548:9: error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_chromahash_from_bytes' in scope
1546 | return InitializationResult.apiChecksumMismatch
1547 | }
1548 | if (uniffi_chromahash_uniffi_checksum_constructor_chromahash_from_bytes() != 29828) {
| `- error: cannot find 'uniffi_chromahash_uniffi_checksum_constructor_chromahash_from_bytes' in scope
1549 | return InitializationResult.apiChecksumMismatch
1550 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:197:41: error: no exact matches in call to initializer
195 | #endif
196 | public static func lift(_ buf: RustBuffer) throws -> SwiftType {
197 | var reader = createReader(data: Data(rustBuffer: buf))
| `- error: no exact matches in call to initializer
198 | let value = try read(from: &reader)
199 | if hasRemaining(reader) {
FoundationEssentials.Data.init:2:19: note: incorrect labels for candidate (have: '(rustBuffer:)', expected: '(_:)')
1 | struct Data {
2 | @inlinable public init<S>(_ elements: S) where S : Sequence, S.Element == UInt8}
| `- note: incorrect labels for candidate (have: '(rustBuffer:)', expected: '(_:)')
3 |
Swift.RangeReplaceableCollection.init:2:19: note: incorrect labels for candidate (have: '(rustBuffer:)', expected: '(_:)')
1 | protocol RangeReplaceableCollection {
2 | @inlinable public init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element}
| `- note: incorrect labels for candidate (have: '(rustBuffer:)', expected: '(_:)')
3 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:212:18: error: cannot find 'RustBuffer' in scope
210 | var writer = createWriter()
211 | write(value, into: &writer)
212 | return RustBuffer(bytes: writer)
| `- error: cannot find 'RustBuffer' in scope
213 | }
214 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:270:23: error: cannot find type 'RustBuffer' in scope
268 |
269 | private func rustCall<T>(_ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
270 | let neverThrow: ((RustBuffer) throws -> Never)? = nil
| `- error: cannot find type 'RustBuffer' in scope
271 | return try makeRustCall(callback, errorHandler: neverThrow)
272 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:285:22: error: cannot find 'RustCallStatus' in scope
283 | ) throws -> T {
284 | uniffiEnsureChromahashUniffiInitialized()
285 | var callStatus = RustCallStatus.init()
| `- error: cannot find 'RustCallStatus' in scope
286 | let returnedVal = callback(&callStatus)
287 | try uniffiCheckCallStatus(callStatus: callStatus, errorHandler: errorHandler)
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:495:24: error: cannot find 'RustBuffer' in scope
493 | // The swift string gives us a trailing null byte, we don't want it.
494 | let buf = UnsafeBufferPointer(rebasing: ptr.prefix(upTo: ptr.count - 1))
495 | return RustBuffer.from(buf)
| `- error: cannot find 'RustBuffer' in scope
496 | }
497 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:603:32: error: cannot find 'uniffi_chromahash_uniffi_fn_clone_batchencoder' in scope
601 | #endif
602 | public func uniffiCloneHandle() -> UInt64 {
603 | return try! rustCall { uniffi_chromahash_uniffi_fn_clone_batchencoder(self.handle, $0) }
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_clone_batchencoder' in scope
604 | }
605 | /**
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:611:5: error: cannot find 'uniffi_chromahash_uniffi_fn_constructor_batchencoder_new' in scope
609 | let handle =
610 | try! rustCall() {
611 | uniffi_chromahash_uniffi_fn_constructor_batchencoder_new($0
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_constructor_batchencoder_new' in scope
612 | )
613 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:623:25: error: cannot find 'uniffi_chromahash_uniffi_fn_free_batchencoder' in scope
621 | }
622 |
623 | try! rustCall { uniffi_chromahash_uniffi_fn_free_batchencoder(handle, $0) }
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_free_batchencoder' in scope
624 | }
625 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:632:5: error: cannot find 'uniffi_chromahash_uniffi_fn_constructor_batchencoder_with_threads' in scope
630 | public static func withThreads(threads: UInt32) -> BatchEncoder {
631 | return try! FfiConverterTypeBatchEncoder_lift(try! rustCall() {
632 | uniffi_chromahash_uniffi_fn_constructor_batchencoder_with_threads(
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_constructor_batchencoder_with_threads' in scope
633 | FfiConverterUInt32.lower(threads),$0
634 | )
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:651:5: error: cannot find 'uniffi_chromahash_uniffi_fn_method_batchencoder_encode_batch' in scope
649 | open func encodeBatch(items: [ImageInput])throws -> [ChromaHash] {
650 | return try FfiConverterSequenceTypeChromaHash.lift(try rustCallWithError(FfiConverterTypeChromaHashError_lift) {
651 | uniffi_chromahash_uniffi_fn_method_batchencoder_encode_batch(
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_method_batchencoder_encode_batch' in scope
652 | self.uniffiCloneHandle(),
653 | FfiConverterSequenceTypeImageInput.lower(items),$0
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:787:32: error: cannot find 'uniffi_chromahash_uniffi_fn_clone_chromahash' in scope
785 | #endif
786 | public func uniffiCloneHandle() -> UInt64 {
787 | return try! rustCall { uniffi_chromahash_uniffi_fn_clone_chromahash(self.handle, $0) }
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_clone_chromahash' in scope
788 | }
789 | // No primary constructor declared for this class.
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:797:25: error: cannot find 'uniffi_chromahash_uniffi_fn_free_chromahash' in scope
795 | }
796 |
797 | try! rustCall { uniffi_chromahash_uniffi_fn_free_chromahash(handle, $0) }
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_free_chromahash' in scope
798 | }
799 |
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:807:5: error: cannot find 'uniffi_chromahash_uniffi_fn_constructor_chromahash_encode' in scope
805 | public static func encode(w: UInt32, h: UInt32, rgba: Data, gamut: Gamut)throws -> ChromaHash {
806 | return try FfiConverterTypeChromaHash_lift(try rustCallWithError(FfiConverterTypeChromaHashError_lift) {
807 | uniffi_chromahash_uniffi_fn_constructor_chromahash_encode(
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_constructor_chromahash_encode' in scope
808 | FfiConverterUInt32.lower(w),
809 | FfiConverterUInt32.lower(h),
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:824:5: error: cannot find 'uniffi_chromahash_uniffi_fn_constructor_chromahash_encode_with_quality' in scope
822 | public static func encodeWithQuality(w: UInt32, h: UInt32, rgba: Data, gamut: Gamut, quality: UInt8)throws -> ChromaHash {
823 | return try FfiConverterTypeChromaHash_lift(try rustCallWithError(FfiConverterTypeChromaHashError_lift) {
824 | uniffi_chromahash_uniffi_fn_constructor_chromahash_encode_with_quality(
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_constructor_chromahash_encode_with_quality' in scope
825 | FfiConverterUInt32.lower(w),
826 | FfiConverterUInt32.lower(h),
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:840:5: error: cannot find 'uniffi_chromahash_uniffi_fn_constructor_chromahash_from_bytes' in scope
838 | public static func fromBytes(bytes: Data)throws -> ChromaHash {
839 | return try FfiConverterTypeChromaHash_lift(try rustCallWithError(FfiConverterTypeChromaHashError_lift) {
840 | uniffi_chromahash_uniffi_fn_constructor_chromahash_from_bytes(
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_constructor_chromahash_from_bytes' in scope
841 | FfiConverterData.lower(bytes),$0
842 | )
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:853:5: error: cannot find 'uniffi_chromahash_uniffi_fn_method_chromahash_as_bytes' in scope
851 | open func asBytes() -> Data {
852 | return try! FfiConverterData.lift(try! rustCall() {
853 | uniffi_chromahash_uniffi_fn_method_chromahash_as_bytes(
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_method_chromahash_as_bytes' in scope
854 | self.uniffiCloneHandle(),$0
855 | )
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:864:5: error: cannot find 'uniffi_chromahash_uniffi_fn_method_chromahash_average_color' in scope
862 | open func averageColor() -> RgbaColor {
863 | return try! FfiConverterTypeRgbaColor_lift(try! rustCall() {
864 | uniffi_chromahash_uniffi_fn_method_chromahash_average_color(
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_method_chromahash_average_color' in scope
865 | self.uniffiCloneHandle(),$0
866 | )
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:875:5: error: cannot find 'uniffi_chromahash_uniffi_fn_method_chromahash_decode' in scope
873 | open func decode() -> DecodeResult {
874 | return try! FfiConverterTypeDecodeResult_lift(try! rustCall() {
875 | uniffi_chromahash_uniffi_fn_method_chromahash_decode(
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_method_chromahash_decode' in scope
876 | self.uniffiCloneHandle(),$0
877 | )
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:886:5: error: cannot find 'uniffi_chromahash_uniffi_fn_method_chromahash_decode_capped' in scope
884 | open func decodeCapped(maxW: UInt32, maxH: UInt32) -> DecodeResult {
885 | return try! FfiConverterTypeDecodeResult_lift(try! rustCall() {
886 | uniffi_chromahash_uniffi_fn_method_chromahash_decode_capped(
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_method_chromahash_decode_capped' in scope
887 | self.uniffiCloneHandle(),
888 | FfiConverterUInt32.lower(maxW),
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:899:5: error: cannot find 'uniffi_chromahash_uniffi_fn_method_chromahash_decode_capped_to' in scope
897 | open func decodeCappedTo(maxW: UInt32, maxH: UInt32, output: Gamut) -> DecodeResult {
898 | return try! FfiConverterTypeDecodeResult_lift(try! rustCall() {
899 | uniffi_chromahash_uniffi_fn_method_chromahash_decode_capped_to(
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_method_chromahash_decode_capped_to' in scope
900 | self.uniffiCloneHandle(),
901 | FfiConverterUInt32.lower(maxW),
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:914:5: error: cannot find 'uniffi_chromahash_uniffi_fn_method_chromahash_decode_to' in scope
912 | open func decodeTo(output: Gamut) -> DecodeResult {
913 | return try! FfiConverterTypeDecodeResult_lift(try! rustCall() {
914 | uniffi_chromahash_uniffi_fn_method_chromahash_decode_to(
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_method_chromahash_decode_to' in scope
915 | self.uniffiCloneHandle(),
916 | FfiConverterTypeGamut_lower(output),$0
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1456:5: error: cannot find 'uniffi_chromahash_uniffi_fn_func_compact_tier' in scope
1454 | public func compactTier() -> UInt8 {
1455 | return try! FfiConverterUInt8.lift(try! rustCall() {
1456 | uniffi_chromahash_uniffi_fn_func_compact_tier($0
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_func_compact_tier' in scope
1457 | )
1458 | })
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1465:5: error: cannot find 'uniffi_chromahash_uniffi_fn_func_default_tier' in scope
1463 | public func defaultTier() -> UInt8 {
1464 | return try! FfiConverterUInt8.lift(try! rustCall() {
1465 | uniffi_chromahash_uniffi_fn_func_default_tier($0
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_func_default_tier' in scope
1466 | )
1467 | })
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1474:5: error: cannot find 'uniffi_chromahash_uniffi_fn_func_format_version' in scope
1472 | public func formatVersion() -> UInt8 {
1473 | return try! FfiConverterUInt8.lift(try! rustCall() {
1474 | uniffi_chromahash_uniffi_fn_func_format_version($0
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_func_format_version' in scope
1475 | )
1476 | })
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:1483:5: error: cannot find 'uniffi_chromahash_uniffi_fn_func_max_tier' in scope
1481 | public func maxTier() -> UInt8 {
1482 | return try! FfiConverterUInt8.lift(try! rustCall() {
1483 | uniffi_chromahash_uniffi_fn_func_max_tier($0
| `- error: cannot find 'uniffi_chromahash_uniffi_fn_func_max_tier' in scope
1484 | )
1485 | })
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:23:28: error: cannot find type 'RustBuffer' in scope
21 | }
22 |
23 | static func empty() -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
24 | RustBuffer(capacity: 0, len:0, data: nil)
25 | }
/host/spi-builder-workspace/swift/Sources/ChromaHashBindings/chromahash_uniffi.swift:27:60: error: cannot find type 'RustBuffer' in scope
25 | }
26 |
27 | static func from(_ ptr: UnsafeBufferPointer<UInt8>) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
28 | try! rustCall { ffi_chromahash_uniffi_rustbuffer_from_bytes(ForeignBytes(bufferPointer: ptr), $0) }
29 | }
BUILD FAILURE 6.3 android