Build Information
Failed to build Demucs, reference main (326ca7), with Swift 6.2 for Wasm on 30 Sep 2026 14:01:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-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:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SplitFireAI/demucs-swift.git
Reference: main
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/SplitFireAI/demucs-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 326ca71 Release 0.1.0
Cloned https://github.com/SplitFireAI/demucs-swift.git
Revision (git rev-parse @):
326ca71a2297bb9f20da56c67bd1d0701b6a3235
SUCCESS checkout https://github.com/SplitFireAI/demucs-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/SplitFireAI/demucs-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ff44196b45f83e5a0a99a627b185f548850d9bc1242e3dee2178fb1570812fe8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Downloading binary artifact https://github.com/SplitFireAI/demucs-rs/releases/download/swift-v0.1.0/DemucsFramework.xcframework.zip
[16375/54035290] Downloading https://github.com/SplitFireAI/demucs-rs/releases/download/swift-v0.1.0/DemucsFramework.xcframework.zip
Downloaded https://github.com/SplitFireAI/demucs-rs/releases/download/swift-v0.1.0/DemucsFramework.xcframework.zip (3.73s)
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling Demucs DemucsEngine.swift
[4/5] Emitting module Demucs
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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 | uniffiEnsureDemucsFfiInitialized()
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.swift:518:25: error: cannot find type 'RustBuffer' in scope
516 | fileprivate struct FfiConverterString: FfiConverter {
517 | typealias SwiftType = String
518 | typealias FfiType = RustBuffer
| `- error: cannot find type 'RustBuffer' in scope
519 |
520 | public static func lift(_ value: RustBuffer) throws -> String {
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:520:38: error: cannot find type 'RustBuffer' in scope
518 | typealias FfiType = RustBuffer
519 |
520 | public static func lift(_ value: RustBuffer) throws -> String {
| `- error: cannot find type 'RustBuffer' in scope
521 | defer {
522 | value.deallocate()
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:531:50: error: cannot find type 'RustBuffer' in scope
529 | }
530 |
531 | public static func lower(_ value: String) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
532 | return value.utf8CString.withUnsafeBufferPointer { ptr in
533 | // The swift string gives us int8_t, we want uint8_t.
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:516: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 |
:
514 | @_documentation(visibility: private)
515 | #endif
516 | fileprivate struct FfiConverterString: FfiConverter {
| |- error: type 'FfiConverterString' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
517 | typealias SwiftType = String
518 | typealias FfiType = RustBuffer
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:848:15: error: type 'FfiConverterTypeFfiDownloadProgress' 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
:
846 | @_documentation(visibility: private)
847 | #endif
848 | public struct FfiConverterTypeFfiDownloadProgress: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiDownloadProgress' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
849 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FfiDownloadProgress {
850 | return
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:869:61: error: cannot find type 'RustBuffer' in scope
867 | @_documentation(visibility: private)
868 | #endif
869 | public func FfiConverterTypeFfiDownloadProgress_lift(_ buf: RustBuffer) throws -> FfiDownloadProgress {
| `- error: cannot find type 'RustBuffer' in scope
870 | return try FfiConverterTypeFfiDownloadProgress.lift(buf)
871 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:876:88: error: cannot find type 'RustBuffer' in scope
874 | @_documentation(visibility: private)
875 | #endif
876 | public func FfiConverterTypeFfiDownloadProgress_lower(_ value: FfiDownloadProgress) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
877 | return FfiConverterTypeFfiDownloadProgress.lower(value)
878 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:912:15: error: type 'FfiConverterTypeFfiModelMetadata' 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
:
910 | @_documentation(visibility: private)
911 | #endif
912 | public struct FfiConverterTypeFfiModelMetadata: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiModelMetadata' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
913 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FfiModelMetadata {
914 | return
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:939:58: error: cannot find type 'RustBuffer' in scope
937 | @_documentation(visibility: private)
938 | #endif
939 | public func FfiConverterTypeFfiModelMetadata_lift(_ buf: RustBuffer) throws -> FfiModelMetadata {
| `- error: cannot find type 'RustBuffer' in scope
940 | return try FfiConverterTypeFfiModelMetadata.lift(buf)
941 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:946:82: error: cannot find type 'RustBuffer' in scope
944 | @_documentation(visibility: private)
945 | #endif
946 | public func FfiConverterTypeFfiModelMetadata_lower(_ value: FfiModelMetadata) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
947 | return FfiConverterTypeFfiModelMetadata.lower(value)
948 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:976:15: error: type 'FfiConverterTypeFfiSeparationProgress' 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
:
974 | @_documentation(visibility: private)
975 | #endif
976 | public struct FfiConverterTypeFfiSeparationProgress: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiSeparationProgress' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
977 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FfiSeparationProgress {
978 | return
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:997:63: error: cannot find type 'RustBuffer' in scope
995 | @_documentation(visibility: private)
996 | #endif
997 | public func FfiConverterTypeFfiSeparationProgress_lift(_ buf: RustBuffer) throws -> FfiSeparationProgress {
| `- error: cannot find type 'RustBuffer' in scope
998 | return try FfiConverterTypeFfiSeparationProgress.lift(buf)
999 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1004:92: error: cannot find type 'RustBuffer' in scope
1002 | @_documentation(visibility: private)
1003 | #endif
1004 | public func FfiConverterTypeFfiSeparationProgress_lower(_ value: FfiSeparationProgress) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1005 | return FfiConverterTypeFfiSeparationProgress.lower(value)
1006 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1038:15: error: type 'FfiConverterTypeFfiStem' 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
:
1036 | @_documentation(visibility: private)
1037 | #endif
1038 | public struct FfiConverterTypeFfiStem: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiStem' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1039 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FfiStem {
1040 | return
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1059:49: error: cannot find type 'RustBuffer' in scope
1057 | @_documentation(visibility: private)
1058 | #endif
1059 | public func FfiConverterTypeFfiStem_lift(_ buf: RustBuffer) throws -> FfiStem {
| `- error: cannot find type 'RustBuffer' in scope
1060 | return try FfiConverterTypeFfiStem.lift(buf)
1061 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1066:64: error: cannot find type 'RustBuffer' in scope
1064 | @_documentation(visibility: private)
1065 | #endif
1066 | public func FfiConverterTypeFfiStem_lower(_ value: FfiStem) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1067 | return FfiConverterTypeFfiStem.lower(value)
1068 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1106:15: error: type 'FfiConverterTypeFfiDemucsError' 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 |
:
1104 | @_documentation(visibility: private)
1105 | #endif
1106 | public struct FfiConverterTypeFfiDemucsError: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiDemucsError' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1107 | typealias SwiftType = FfiDemucsError
1108 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1185:56: error: cannot find type 'RustBuffer' in scope
1183 | @_documentation(visibility: private)
1184 | #endif
1185 | public func FfiConverterTypeFfiDemucsError_lift(_ buf: RustBuffer) throws -> FfiDemucsError {
| `- error: cannot find type 'RustBuffer' in scope
1186 | return try FfiConverterTypeFfiDemucsError.lift(buf)
1187 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1192:78: error: cannot find type 'RustBuffer' in scope
1190 | @_documentation(visibility: private)
1191 | #endif
1192 | public func FfiConverterTypeFfiDemucsError_lower(_ value: FfiDemucsError) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1193 | return FfiConverterTypeFfiDemucsError.lower(value)
1194 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1226:15: error: type 'FfiConverterTypeFfiDemucsModel' 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 |
:
1224 | @_documentation(visibility: private)
1225 | #endif
1226 | public struct FfiConverterTypeFfiDemucsModel: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiDemucsModel' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1227 | typealias SwiftType = FfiDemucsModel
1228 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1268:56: error: cannot find type 'RustBuffer' in scope
1266 | @_documentation(visibility: private)
1267 | #endif
1268 | public func FfiConverterTypeFfiDemucsModel_lift(_ buf: RustBuffer) throws -> FfiDemucsModel {
| `- error: cannot find type 'RustBuffer' in scope
1269 | return try FfiConverterTypeFfiDemucsModel.lift(buf)
1270 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1275:78: error: cannot find type 'RustBuffer' in scope
1273 | @_documentation(visibility: private)
1274 | #endif
1275 | public func FfiConverterTypeFfiDemucsModel_lower(_ value: FfiDemucsModel) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1276 | return FfiConverterTypeFfiDemucsModel.lower(value)
1277 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1305:15: error: type 'FfiConverterTypeFfiStemKind' 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 |
:
1303 | @_documentation(visibility: private)
1304 | #endif
1305 | public struct FfiConverterTypeFfiStemKind: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiStemKind' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1306 | typealias SwiftType = FfiStemKind
1307 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1363:53: error: cannot find type 'RustBuffer' in scope
1361 | @_documentation(visibility: private)
1362 | #endif
1363 | public func FfiConverterTypeFfiStemKind_lift(_ buf: RustBuffer) throws -> FfiStemKind {
| `- error: cannot find type 'RustBuffer' in scope
1364 | return try FfiConverterTypeFfiStemKind.lift(buf)
1365 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1370:72: error: cannot find type 'RustBuffer' in scope
1368 | @_documentation(visibility: private)
1369 | #endif
1370 | public func FfiConverterTypeFfiStemKind_lower(_ value: FfiStemKind) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1371 | return FfiConverterTypeFfiStemKind.lower(value)
1372 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1396:25: error: cannot find type 'UniffiVTableCallbackInterfaceFfiDownloadListener' in scope
1394 | // This creates 1-element array, since this seems to be the only way to construct a const
1395 | // pointer that we can pass to the Rust code.
1396 | static let vtable: [UniffiVTableCallbackInterfaceFfiDownloadListener] = [UniffiVTableCallbackInterfaceFfiDownloadListener(
| `- error: cannot find type 'UniffiVTableCallbackInterfaceFfiDownloadListener' in scope
1397 | uniffiFree: { (uniffiHandle: UInt64) -> () in
1398 | do {
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1525:25: error: cannot find type 'UniffiVTableCallbackInterfaceFfiSeparationListener' in scope
1523 | // This creates 1-element array, since this seems to be the only way to construct a const
1524 | // pointer that we can pass to the Rust code.
1525 | static let vtable: [UniffiVTableCallbackInterfaceFfiSeparationListener] = [UniffiVTableCallbackInterfaceFfiSeparationListener(
| `- error: cannot find type 'UniffiVTableCallbackInterfaceFfiSeparationListener' in scope
1526 | uniffiFree: { (uniffiHandle: UInt64) -> () in
1527 | do {
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1634:20: error: type 'FfiConverterOptionString' 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 |
:
1632 | @_documentation(visibility: private)
1633 | #endif
1634 | fileprivate struct FfiConverterOptionString: FfiConverterRustBuffer {
| |- error: type 'FfiConverterOptionString' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1635 | typealias SwiftType = String?
1636 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1658:20: error: type 'FfiConverterOptionTypeFfiDemucsModel' 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 |
:
1656 | @_documentation(visibility: private)
1657 | #endif
1658 | fileprivate struct FfiConverterOptionTypeFfiDemucsModel: FfiConverterRustBuffer {
| |- error: type 'FfiConverterOptionTypeFfiDemucsModel' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1659 | typealias SwiftType = FfiDemucsModel?
1660 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1682:20: error: type 'FfiConverterSequenceFloat' 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 |
:
1680 | @_documentation(visibility: private)
1681 | #endif
1682 | fileprivate struct FfiConverterSequenceFloat: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceFloat' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1683 | typealias SwiftType = [Float]
1684 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1707:20: error: type 'FfiConverterSequenceTypeFfiModelMetadata' 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 |
:
1705 | @_documentation(visibility: private)
1706 | #endif
1707 | fileprivate struct FfiConverterSequenceTypeFfiModelMetadata: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeFfiModelMetadata' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1708 | typealias SwiftType = [FfiModelMetadata]
1709 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1732:20: error: type 'FfiConverterSequenceTypeFfiStem' 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 |
:
1730 | @_documentation(visibility: private)
1731 | #endif
1732 | fileprivate struct FfiConverterSequenceTypeFfiStem: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeFfiStem' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1733 | typealias SwiftType = [FfiStem]
1734 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1757:20: error: type 'FfiConverterSequenceTypeFfiStemKind' 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 |
:
1755 | @_documentation(visibility: private)
1756 | #endif
1757 | fileprivate struct FfiConverterSequenceTypeFfiStemKind: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeFfiStemKind' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1758 | typealias SwiftType = [FfiStemKind]
1759 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1785:34: error: cannot find type 'UniffiRustFutureContinuationCallback' in scope
1783 | fileprivate func uniffiRustCallAsync<F, T>(
1784 | rustFutureFunc: () -> UInt64,
1785 | pollFunc: (UInt64, @escaping UniffiRustFutureContinuationCallback, UInt64) -> (),
| `- error: cannot find type 'UniffiRustFutureContinuationCallback' in scope
1786 | completeFunc: (UInt64, UnsafeMutablePointer<RustCallStatus>) -> F,
1787 | freeFunc: (UInt64) -> (),
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1785:24: error: @escaping attribute only applies to function types
1783 | fileprivate func uniffiRustCallAsync<F, T>(
1784 | rustFutureFunc: () -> UInt64,
1785 | pollFunc: (UInt64, @escaping UniffiRustFutureContinuationCallback, UInt64) -> (),
| `- error: @escaping attribute only applies to function types
1786 | completeFunc: (UInt64, UnsafeMutablePointer<RustCallStatus>) -> F,
1787 | freeFunc: (UInt64) -> (),
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1786:49: error: cannot find type 'RustCallStatus' in scope
1784 | rustFutureFunc: () -> UInt64,
1785 | pollFunc: (UInt64, @escaping UniffiRustFutureContinuationCallback, UInt64) -> (),
1786 | completeFunc: (UInt64, UnsafeMutablePointer<RustCallStatus>) -> F,
| `- error: cannot find type 'RustCallStatus' in scope
1787 | freeFunc: (UInt64) -> (),
1788 | liftFunc: (F) throws -> T,
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1789:21: error: cannot find type 'RustBuffer' in scope
1787 | freeFunc: (UInt64) -> (),
1788 | liftFunc: (F) throws -> T,
1789 | errorHandler: ((RustBuffer) throws -> Swift.Error)?
| `- error: cannot find type 'RustBuffer' in scope
1790 | ) async throws -> T {
1791 | // Make sure to call the ensure init function since future creation doesn't have a
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1930:40: error: cannot find 'ffi_demucs_ffi_uniffi_contract_version' in scope
1928 | let bindings_contract_version = 30
1929 | // Get the scaffolding contract version by calling the into the dylib
1930 | let scaffolding_contract_version = ffi_demucs_ffi_uniffi_contract_version()
| `- error: cannot find 'ffi_demucs_ffi_uniffi_contract_version' in scope
1931 | if bindings_contract_version != scaffolding_contract_version {
1932 | return InitializationResult.contractVersionMismatch
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1934:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_all_models' in scope
1932 | return InitializationResult.contractVersionMismatch
1933 | }
1934 | if (uniffi_demucs_ffi_checksum_func_all_models() != 35841) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_all_models' in scope
1935 | return InitializationResult.apiChecksumMismatch
1936 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1937:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_cached_model_path' in scope
1935 | return InitializationResult.apiChecksumMismatch
1936 | }
1937 | if (uniffi_demucs_ffi_checksum_func_cached_model_path() != 60660) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_cached_model_path' in scope
1938 | return InitializationResult.apiChecksumMismatch
1939 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1940:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_chunk_length' in scope
1938 | return InitializationResult.apiChecksumMismatch
1939 | }
1940 | if (uniffi_demucs_ffi_checksum_func_chunk_length() != 30511) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_chunk_length' in scope
1941 | return InitializationResult.apiChecksumMismatch
1942 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1943:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_configure_cache_dir' in scope
1941 | return InitializationResult.apiChecksumMismatch
1942 | }
1943 | if (uniffi_demucs_ffi_checksum_func_configure_cache_dir() != 17121) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_configure_cache_dir' in scope
1944 | return InitializationResult.apiChecksumMismatch
1945 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1946:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_delete_cached_model' in scope
1944 | return InitializationResult.apiChecksumMismatch
1945 | }
1946 | if (uniffi_demucs_ffi_checksum_func_delete_cached_model() != 32733) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_delete_cached_model' in scope
1947 | return InitializationResult.apiChecksumMismatch
1948 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1949:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_download_model' in scope
1947 | return InitializationResult.apiChecksumMismatch
1948 | }
1949 | if (uniffi_demucs_ffi_checksum_func_download_model() != 18057) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_download_model' in scope
1950 | return InitializationResult.apiChecksumMismatch
1951 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1952:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_is_model_cached' in scope
1950 | return InitializationResult.apiChecksumMismatch
1951 | }
1952 | if (uniffi_demucs_ffi_checksum_func_is_model_cached() != 62970) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_is_model_cached' in scope
1953 | return InitializationResult.apiChecksumMismatch
1954 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1955:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_model_metadata' in scope
1953 | return InitializationResult.apiChecksumMismatch
1954 | }
1955 | if (uniffi_demucs_ffi_checksum_func_model_metadata() != 60733) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_model_metadata' in scope
1956 | return InitializationResult.apiChecksumMismatch
1957 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1958:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_num_chunks' in scope
1956 | return InitializationResult.apiChecksumMismatch
1957 | }
1958 | if (uniffi_demucs_ffi_checksum_func_num_chunks() != 4306) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_num_chunks' in scope
1959 | return InitializationResult.apiChecksumMismatch
1960 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1961:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_is_loaded' in scope
1959 | return InitializationResult.apiChecksumMismatch
1960 | }
1961 | if (uniffi_demucs_ffi_checksum_method_ffidemucsengine_is_loaded() != 13782) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_is_loaded' in scope
1962 | return InitializationResult.apiChecksumMismatch
1963 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1964:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_load_model' in scope
1962 | return InitializationResult.apiChecksumMismatch
1963 | }
1964 | if (uniffi_demucs_ffi_checksum_method_ffidemucsengine_load_model() != 18700) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_load_model' in scope
1965 | return InitializationResult.apiChecksumMismatch
1966 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1967:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_loaded_model' in scope
1965 | return InitializationResult.apiChecksumMismatch
1966 | }
1967 | if (uniffi_demucs_ffi_checksum_method_ffidemucsengine_loaded_model() != 27072) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_loaded_model' in scope
1968 | return InitializationResult.apiChecksumMismatch
1969 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1970:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_separate' in scope
1968 | return InitializationResult.apiChecksumMismatch
1969 | }
1970 | if (uniffi_demucs_ffi_checksum_method_ffidemucsengine_separate() != 27889) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_separate' in scope
1971 | return InitializationResult.apiChecksumMismatch
1972 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1973:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_unload_model' in scope
1971 | return InitializationResult.apiChecksumMismatch
1972 | }
1973 | if (uniffi_demucs_ffi_checksum_method_ffidemucsengine_unload_model() != 21923) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_unload_model' in scope
1974 | return InitializationResult.apiChecksumMismatch
1975 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1976:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_warmup' in scope
1974 | return InitializationResult.apiChecksumMismatch
1975 | }
1976 | if (uniffi_demucs_ffi_checksum_method_ffidemucsengine_warmup() != 4128) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_warmup' in scope
1977 | return InitializationResult.apiChecksumMismatch
1978 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1979:9: error: cannot find 'uniffi_demucs_ffi_checksum_constructor_ffidemucsengine_new' in scope
1977 | return InitializationResult.apiChecksumMismatch
1978 | }
1979 | if (uniffi_demucs_ffi_checksum_constructor_ffidemucsengine_new() != 48414) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_constructor_ffidemucsengine_new' in scope
1980 | return InitializationResult.apiChecksumMismatch
1981 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1982:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidownloadlistener_on_progress' in scope
1980 | return InitializationResult.apiChecksumMismatch
1981 | }
1982 | if (uniffi_demucs_ffi_checksum_method_ffidownloadlistener_on_progress() != 42698) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidownloadlistener_on_progress' in scope
1983 | return InitializationResult.apiChecksumMismatch
1984 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1985:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffiseparationlistener_on_progress' in scope
1983 | return InitializationResult.apiChecksumMismatch
1984 | }
1985 | if (uniffi_demucs_ffi_checksum_method_ffiseparationlistener_on_progress() != 32252) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffiseparationlistener_on_progress' in scope
1986 | return InitializationResult.apiChecksumMismatch
1987 | }
[5/5] Compiling Demucs demucs_ffi.swift
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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 | uniffiEnsureDemucsFfiInitialized()
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.swift:518:25: error: cannot find type 'RustBuffer' in scope
516 | fileprivate struct FfiConverterString: FfiConverter {
517 | typealias SwiftType = String
518 | typealias FfiType = RustBuffer
| `- error: cannot find type 'RustBuffer' in scope
519 |
520 | public static func lift(_ value: RustBuffer) throws -> String {
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:520:38: error: cannot find type 'RustBuffer' in scope
518 | typealias FfiType = RustBuffer
519 |
520 | public static func lift(_ value: RustBuffer) throws -> String {
| `- error: cannot find type 'RustBuffer' in scope
521 | defer {
522 | value.deallocate()
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:531:50: error: cannot find type 'RustBuffer' in scope
529 | }
530 |
531 | public static func lower(_ value: String) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
532 | return value.utf8CString.withUnsafeBufferPointer { ptr in
533 | // The swift string gives us int8_t, we want uint8_t.
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:516: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 |
:
514 | @_documentation(visibility: private)
515 | #endif
516 | fileprivate struct FfiConverterString: FfiConverter {
| |- error: type 'FfiConverterString' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
517 | typealias SwiftType = String
518 | typealias FfiType = RustBuffer
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:848:15: error: type 'FfiConverterTypeFfiDownloadProgress' 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
:
846 | @_documentation(visibility: private)
847 | #endif
848 | public struct FfiConverterTypeFfiDownloadProgress: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiDownloadProgress' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
849 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FfiDownloadProgress {
850 | return
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:869:61: error: cannot find type 'RustBuffer' in scope
867 | @_documentation(visibility: private)
868 | #endif
869 | public func FfiConverterTypeFfiDownloadProgress_lift(_ buf: RustBuffer) throws -> FfiDownloadProgress {
| `- error: cannot find type 'RustBuffer' in scope
870 | return try FfiConverterTypeFfiDownloadProgress.lift(buf)
871 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:876:88: error: cannot find type 'RustBuffer' in scope
874 | @_documentation(visibility: private)
875 | #endif
876 | public func FfiConverterTypeFfiDownloadProgress_lower(_ value: FfiDownloadProgress) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
877 | return FfiConverterTypeFfiDownloadProgress.lower(value)
878 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:912:15: error: type 'FfiConverterTypeFfiModelMetadata' 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
:
910 | @_documentation(visibility: private)
911 | #endif
912 | public struct FfiConverterTypeFfiModelMetadata: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiModelMetadata' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
913 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FfiModelMetadata {
914 | return
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:939:58: error: cannot find type 'RustBuffer' in scope
937 | @_documentation(visibility: private)
938 | #endif
939 | public func FfiConverterTypeFfiModelMetadata_lift(_ buf: RustBuffer) throws -> FfiModelMetadata {
| `- error: cannot find type 'RustBuffer' in scope
940 | return try FfiConverterTypeFfiModelMetadata.lift(buf)
941 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:946:82: error: cannot find type 'RustBuffer' in scope
944 | @_documentation(visibility: private)
945 | #endif
946 | public func FfiConverterTypeFfiModelMetadata_lower(_ value: FfiModelMetadata) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
947 | return FfiConverterTypeFfiModelMetadata.lower(value)
948 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:976:15: error: type 'FfiConverterTypeFfiSeparationProgress' 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
:
974 | @_documentation(visibility: private)
975 | #endif
976 | public struct FfiConverterTypeFfiSeparationProgress: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiSeparationProgress' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
977 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FfiSeparationProgress {
978 | return
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:997:63: error: cannot find type 'RustBuffer' in scope
995 | @_documentation(visibility: private)
996 | #endif
997 | public func FfiConverterTypeFfiSeparationProgress_lift(_ buf: RustBuffer) throws -> FfiSeparationProgress {
| `- error: cannot find type 'RustBuffer' in scope
998 | return try FfiConverterTypeFfiSeparationProgress.lift(buf)
999 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1004:92: error: cannot find type 'RustBuffer' in scope
1002 | @_documentation(visibility: private)
1003 | #endif
1004 | public func FfiConverterTypeFfiSeparationProgress_lower(_ value: FfiSeparationProgress) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1005 | return FfiConverterTypeFfiSeparationProgress.lower(value)
1006 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1038:15: error: type 'FfiConverterTypeFfiStem' 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
:
1036 | @_documentation(visibility: private)
1037 | #endif
1038 | public struct FfiConverterTypeFfiStem: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiStem' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1039 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FfiStem {
1040 | return
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1059:49: error: cannot find type 'RustBuffer' in scope
1057 | @_documentation(visibility: private)
1058 | #endif
1059 | public func FfiConverterTypeFfiStem_lift(_ buf: RustBuffer) throws -> FfiStem {
| `- error: cannot find type 'RustBuffer' in scope
1060 | return try FfiConverterTypeFfiStem.lift(buf)
1061 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1066:64: error: cannot find type 'RustBuffer' in scope
1064 | @_documentation(visibility: private)
1065 | #endif
1066 | public func FfiConverterTypeFfiStem_lower(_ value: FfiStem) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1067 | return FfiConverterTypeFfiStem.lower(value)
1068 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1106:15: error: type 'FfiConverterTypeFfiDemucsError' 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 |
:
1104 | @_documentation(visibility: private)
1105 | #endif
1106 | public struct FfiConverterTypeFfiDemucsError: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiDemucsError' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1107 | typealias SwiftType = FfiDemucsError
1108 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1185:56: error: cannot find type 'RustBuffer' in scope
1183 | @_documentation(visibility: private)
1184 | #endif
1185 | public func FfiConverterTypeFfiDemucsError_lift(_ buf: RustBuffer) throws -> FfiDemucsError {
| `- error: cannot find type 'RustBuffer' in scope
1186 | return try FfiConverterTypeFfiDemucsError.lift(buf)
1187 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1192:78: error: cannot find type 'RustBuffer' in scope
1190 | @_documentation(visibility: private)
1191 | #endif
1192 | public func FfiConverterTypeFfiDemucsError_lower(_ value: FfiDemucsError) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1193 | return FfiConverterTypeFfiDemucsError.lower(value)
1194 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1226:15: error: type 'FfiConverterTypeFfiDemucsModel' 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 |
:
1224 | @_documentation(visibility: private)
1225 | #endif
1226 | public struct FfiConverterTypeFfiDemucsModel: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiDemucsModel' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1227 | typealias SwiftType = FfiDemucsModel
1228 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1268:56: error: cannot find type 'RustBuffer' in scope
1266 | @_documentation(visibility: private)
1267 | #endif
1268 | public func FfiConverterTypeFfiDemucsModel_lift(_ buf: RustBuffer) throws -> FfiDemucsModel {
| `- error: cannot find type 'RustBuffer' in scope
1269 | return try FfiConverterTypeFfiDemucsModel.lift(buf)
1270 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1275:78: error: cannot find type 'RustBuffer' in scope
1273 | @_documentation(visibility: private)
1274 | #endif
1275 | public func FfiConverterTypeFfiDemucsModel_lower(_ value: FfiDemucsModel) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1276 | return FfiConverterTypeFfiDemucsModel.lower(value)
1277 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1305:15: error: type 'FfiConverterTypeFfiStemKind' 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 |
:
1303 | @_documentation(visibility: private)
1304 | #endif
1305 | public struct FfiConverterTypeFfiStemKind: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeFfiStemKind' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1306 | typealias SwiftType = FfiStemKind
1307 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1363:53: error: cannot find type 'RustBuffer' in scope
1361 | @_documentation(visibility: private)
1362 | #endif
1363 | public func FfiConverterTypeFfiStemKind_lift(_ buf: RustBuffer) throws -> FfiStemKind {
| `- error: cannot find type 'RustBuffer' in scope
1364 | return try FfiConverterTypeFfiStemKind.lift(buf)
1365 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1370:72: error: cannot find type 'RustBuffer' in scope
1368 | @_documentation(visibility: private)
1369 | #endif
1370 | public func FfiConverterTypeFfiStemKind_lower(_ value: FfiStemKind) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
1371 | return FfiConverterTypeFfiStemKind.lower(value)
1372 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1396:25: error: cannot find type 'UniffiVTableCallbackInterfaceFfiDownloadListener' in scope
1394 | // This creates 1-element array, since this seems to be the only way to construct a const
1395 | // pointer that we can pass to the Rust code.
1396 | static let vtable: [UniffiVTableCallbackInterfaceFfiDownloadListener] = [UniffiVTableCallbackInterfaceFfiDownloadListener(
| `- error: cannot find type 'UniffiVTableCallbackInterfaceFfiDownloadListener' in scope
1397 | uniffiFree: { (uniffiHandle: UInt64) -> () in
1398 | do {
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1525:25: error: cannot find type 'UniffiVTableCallbackInterfaceFfiSeparationListener' in scope
1523 | // This creates 1-element array, since this seems to be the only way to construct a const
1524 | // pointer that we can pass to the Rust code.
1525 | static let vtable: [UniffiVTableCallbackInterfaceFfiSeparationListener] = [UniffiVTableCallbackInterfaceFfiSeparationListener(
| `- error: cannot find type 'UniffiVTableCallbackInterfaceFfiSeparationListener' in scope
1526 | uniffiFree: { (uniffiHandle: UInt64) -> () in
1527 | do {
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1634:20: error: type 'FfiConverterOptionString' 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 |
:
1632 | @_documentation(visibility: private)
1633 | #endif
1634 | fileprivate struct FfiConverterOptionString: FfiConverterRustBuffer {
| |- error: type 'FfiConverterOptionString' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1635 | typealias SwiftType = String?
1636 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1658:20: error: type 'FfiConverterOptionTypeFfiDemucsModel' 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 |
:
1656 | @_documentation(visibility: private)
1657 | #endif
1658 | fileprivate struct FfiConverterOptionTypeFfiDemucsModel: FfiConverterRustBuffer {
| |- error: type 'FfiConverterOptionTypeFfiDemucsModel' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1659 | typealias SwiftType = FfiDemucsModel?
1660 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1682:20: error: type 'FfiConverterSequenceFloat' 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 |
:
1680 | @_documentation(visibility: private)
1681 | #endif
1682 | fileprivate struct FfiConverterSequenceFloat: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceFloat' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1683 | typealias SwiftType = [Float]
1684 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1707:20: error: type 'FfiConverterSequenceTypeFfiModelMetadata' 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 |
:
1705 | @_documentation(visibility: private)
1706 | #endif
1707 | fileprivate struct FfiConverterSequenceTypeFfiModelMetadata: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeFfiModelMetadata' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1708 | typealias SwiftType = [FfiModelMetadata]
1709 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1732:20: error: type 'FfiConverterSequenceTypeFfiStem' 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 |
:
1730 | @_documentation(visibility: private)
1731 | #endif
1732 | fileprivate struct FfiConverterSequenceTypeFfiStem: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeFfiStem' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1733 | typealias SwiftType = [FfiStem]
1734 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1757:20: error: type 'FfiConverterSequenceTypeFfiStemKind' 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 |
:
1755 | @_documentation(visibility: private)
1756 | #endif
1757 | fileprivate struct FfiConverterSequenceTypeFfiStemKind: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeFfiStemKind' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
1758 | typealias SwiftType = [FfiStemKind]
1759 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1785:34: error: cannot find type 'UniffiRustFutureContinuationCallback' in scope
1783 | fileprivate func uniffiRustCallAsync<F, T>(
1784 | rustFutureFunc: () -> UInt64,
1785 | pollFunc: (UInt64, @escaping UniffiRustFutureContinuationCallback, UInt64) -> (),
| `- error: cannot find type 'UniffiRustFutureContinuationCallback' in scope
1786 | completeFunc: (UInt64, UnsafeMutablePointer<RustCallStatus>) -> F,
1787 | freeFunc: (UInt64) -> (),
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1785:24: error: @escaping attribute only applies to function types
1783 | fileprivate func uniffiRustCallAsync<F, T>(
1784 | rustFutureFunc: () -> UInt64,
1785 | pollFunc: (UInt64, @escaping UniffiRustFutureContinuationCallback, UInt64) -> (),
| `- error: @escaping attribute only applies to function types
1786 | completeFunc: (UInt64, UnsafeMutablePointer<RustCallStatus>) -> F,
1787 | freeFunc: (UInt64) -> (),
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1786:49: error: cannot find type 'RustCallStatus' in scope
1784 | rustFutureFunc: () -> UInt64,
1785 | pollFunc: (UInt64, @escaping UniffiRustFutureContinuationCallback, UInt64) -> (),
1786 | completeFunc: (UInt64, UnsafeMutablePointer<RustCallStatus>) -> F,
| `- error: cannot find type 'RustCallStatus' in scope
1787 | freeFunc: (UInt64) -> (),
1788 | liftFunc: (F) throws -> T,
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1789:21: error: cannot find type 'RustBuffer' in scope
1787 | freeFunc: (UInt64) -> (),
1788 | liftFunc: (F) throws -> T,
1789 | errorHandler: ((RustBuffer) throws -> Swift.Error)?
| `- error: cannot find type 'RustBuffer' in scope
1790 | ) async throws -> T {
1791 | // Make sure to call the ensure init function since future creation doesn't have a
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1930:40: error: cannot find 'ffi_demucs_ffi_uniffi_contract_version' in scope
1928 | let bindings_contract_version = 30
1929 | // Get the scaffolding contract version by calling the into the dylib
1930 | let scaffolding_contract_version = ffi_demucs_ffi_uniffi_contract_version()
| `- error: cannot find 'ffi_demucs_ffi_uniffi_contract_version' in scope
1931 | if bindings_contract_version != scaffolding_contract_version {
1932 | return InitializationResult.contractVersionMismatch
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1934:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_all_models' in scope
1932 | return InitializationResult.contractVersionMismatch
1933 | }
1934 | if (uniffi_demucs_ffi_checksum_func_all_models() != 35841) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_all_models' in scope
1935 | return InitializationResult.apiChecksumMismatch
1936 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1937:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_cached_model_path' in scope
1935 | return InitializationResult.apiChecksumMismatch
1936 | }
1937 | if (uniffi_demucs_ffi_checksum_func_cached_model_path() != 60660) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_cached_model_path' in scope
1938 | return InitializationResult.apiChecksumMismatch
1939 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1940:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_chunk_length' in scope
1938 | return InitializationResult.apiChecksumMismatch
1939 | }
1940 | if (uniffi_demucs_ffi_checksum_func_chunk_length() != 30511) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_chunk_length' in scope
1941 | return InitializationResult.apiChecksumMismatch
1942 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1943:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_configure_cache_dir' in scope
1941 | return InitializationResult.apiChecksumMismatch
1942 | }
1943 | if (uniffi_demucs_ffi_checksum_func_configure_cache_dir() != 17121) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_configure_cache_dir' in scope
1944 | return InitializationResult.apiChecksumMismatch
1945 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1946:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_delete_cached_model' in scope
1944 | return InitializationResult.apiChecksumMismatch
1945 | }
1946 | if (uniffi_demucs_ffi_checksum_func_delete_cached_model() != 32733) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_delete_cached_model' in scope
1947 | return InitializationResult.apiChecksumMismatch
1948 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1949:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_download_model' in scope
1947 | return InitializationResult.apiChecksumMismatch
1948 | }
1949 | if (uniffi_demucs_ffi_checksum_func_download_model() != 18057) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_download_model' in scope
1950 | return InitializationResult.apiChecksumMismatch
1951 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1952:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_is_model_cached' in scope
1950 | return InitializationResult.apiChecksumMismatch
1951 | }
1952 | if (uniffi_demucs_ffi_checksum_func_is_model_cached() != 62970) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_is_model_cached' in scope
1953 | return InitializationResult.apiChecksumMismatch
1954 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1955:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_model_metadata' in scope
1953 | return InitializationResult.apiChecksumMismatch
1954 | }
1955 | if (uniffi_demucs_ffi_checksum_func_model_metadata() != 60733) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_model_metadata' in scope
1956 | return InitializationResult.apiChecksumMismatch
1957 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1958:9: error: cannot find 'uniffi_demucs_ffi_checksum_func_num_chunks' in scope
1956 | return InitializationResult.apiChecksumMismatch
1957 | }
1958 | if (uniffi_demucs_ffi_checksum_func_num_chunks() != 4306) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_func_num_chunks' in scope
1959 | return InitializationResult.apiChecksumMismatch
1960 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1961:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_is_loaded' in scope
1959 | return InitializationResult.apiChecksumMismatch
1960 | }
1961 | if (uniffi_demucs_ffi_checksum_method_ffidemucsengine_is_loaded() != 13782) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_is_loaded' in scope
1962 | return InitializationResult.apiChecksumMismatch
1963 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1964:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_load_model' in scope
1962 | return InitializationResult.apiChecksumMismatch
1963 | }
1964 | if (uniffi_demucs_ffi_checksum_method_ffidemucsengine_load_model() != 18700) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_load_model' in scope
1965 | return InitializationResult.apiChecksumMismatch
1966 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1967:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_loaded_model' in scope
1965 | return InitializationResult.apiChecksumMismatch
1966 | }
1967 | if (uniffi_demucs_ffi_checksum_method_ffidemucsengine_loaded_model() != 27072) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_loaded_model' in scope
1968 | return InitializationResult.apiChecksumMismatch
1969 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1970:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_separate' in scope
1968 | return InitializationResult.apiChecksumMismatch
1969 | }
1970 | if (uniffi_demucs_ffi_checksum_method_ffidemucsengine_separate() != 27889) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_separate' in scope
1971 | return InitializationResult.apiChecksumMismatch
1972 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1973:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_unload_model' in scope
1971 | return InitializationResult.apiChecksumMismatch
1972 | }
1973 | if (uniffi_demucs_ffi_checksum_method_ffidemucsengine_unload_model() != 21923) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_unload_model' in scope
1974 | return InitializationResult.apiChecksumMismatch
1975 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1976:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_warmup' in scope
1974 | return InitializationResult.apiChecksumMismatch
1975 | }
1976 | if (uniffi_demucs_ffi_checksum_method_ffidemucsengine_warmup() != 4128) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidemucsengine_warmup' in scope
1977 | return InitializationResult.apiChecksumMismatch
1978 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1979:9: error: cannot find 'uniffi_demucs_ffi_checksum_constructor_ffidemucsengine_new' in scope
1977 | return InitializationResult.apiChecksumMismatch
1978 | }
1979 | if (uniffi_demucs_ffi_checksum_constructor_ffidemucsengine_new() != 48414) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_constructor_ffidemucsengine_new' in scope
1980 | return InitializationResult.apiChecksumMismatch
1981 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1982:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidownloadlistener_on_progress' in scope
1980 | return InitializationResult.apiChecksumMismatch
1981 | }
1982 | if (uniffi_demucs_ffi_checksum_method_ffidownloadlistener_on_progress() != 42698) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffidownloadlistener_on_progress' in scope
1983 | return InitializationResult.apiChecksumMismatch
1984 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1985:9: error: cannot find 'uniffi_demucs_ffi_checksum_method_ffiseparationlistener_on_progress' in scope
1983 | return InitializationResult.apiChecksumMismatch
1984 | }
1985 | if (uniffi_demucs_ffi_checksum_method_ffiseparationlistener_on_progress() != 32252) {
| `- error: cannot find 'uniffi_demucs_ffi_checksum_method_ffiseparationlistener_on_progress' in scope
1986 | return InitializationResult.apiChecksumMismatch
1987 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.swift:285:22: error: cannot find 'RustCallStatus' in scope
283 | ) throws -> T {
284 | uniffiEnsureDemucsFfiInitialized()
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/Sources/Demucs/demucs_ffi.swift:643:32: error: cannot find 'uniffi_demucs_ffi_fn_clone_ffidemucsengine' in scope
641 | #endif
642 | public func uniffiCloneHandle() -> UInt64 {
643 | return try! rustCall { uniffi_demucs_ffi_fn_clone_ffidemucsengine(self.handle, $0) }
| `- error: cannot find 'uniffi_demucs_ffi_fn_clone_ffidemucsengine' in scope
644 | }
645 | public convenience init() {
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:648:5: error: cannot find 'uniffi_demucs_ffi_fn_constructor_ffidemucsengine_new' in scope
646 | let handle =
647 | try! rustCall() {
648 | uniffi_demucs_ffi_fn_constructor_ffidemucsengine_new($0
| `- error: cannot find 'uniffi_demucs_ffi_fn_constructor_ffidemucsengine_new' in scope
649 | )
650 | }
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:660:25: error: cannot find 'uniffi_demucs_ffi_fn_free_ffidemucsengine' in scope
658 | }
659 |
660 | try! rustCall { uniffi_demucs_ffi_fn_free_ffidemucsengine(handle, $0) }
| `- error: cannot find 'uniffi_demucs_ffi_fn_free_ffidemucsengine' in scope
661 | }
662 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:668:5: error: cannot find 'uniffi_demucs_ffi_fn_method_ffidemucsengine_is_loaded' in scope
666 | open func isLoaded() -> Bool {
667 | return try! FfiConverterBool.lift(try! rustCall() {
668 | uniffi_demucs_ffi_fn_method_ffidemucsengine_is_loaded(
| `- error: cannot find 'uniffi_demucs_ffi_fn_method_ffidemucsengine_is_loaded' in scope
669 | self.uniffiCloneHandle(),$0
670 | )
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:683:17: error: cannot find 'uniffi_demucs_ffi_fn_method_ffidemucsengine_load_model' in scope
681 | try await uniffiRustCallAsync(
682 | rustFutureFunc: {
683 | uniffi_demucs_ffi_fn_method_ffidemucsengine_load_model(
| `- error: cannot find 'uniffi_demucs_ffi_fn_method_ffidemucsengine_load_model' in scope
684 | self.uniffiCloneHandle(),
685 | FfiConverterTypeFfiDemucsModel_lower(model)
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:688:23: error: cannot find 'ffi_demucs_ffi_rust_future_poll_f64' in scope
686 | )
687 | },
688 | pollFunc: ffi_demucs_ffi_rust_future_poll_f64,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_poll_f64' in scope
689 | completeFunc: ffi_demucs_ffi_rust_future_complete_f64,
690 | freeFunc: ffi_demucs_ffi_rust_future_free_f64,
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:689:27: error: cannot find 'ffi_demucs_ffi_rust_future_complete_f64' in scope
687 | },
688 | pollFunc: ffi_demucs_ffi_rust_future_poll_f64,
689 | completeFunc: ffi_demucs_ffi_rust_future_complete_f64,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_complete_f64' in scope
690 | freeFunc: ffi_demucs_ffi_rust_future_free_f64,
691 | liftFunc: FfiConverterDouble.lift,
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:690:23: error: cannot find 'ffi_demucs_ffi_rust_future_free_f64' in scope
688 | pollFunc: ffi_demucs_ffi_rust_future_poll_f64,
689 | completeFunc: ffi_demucs_ffi_rust_future_complete_f64,
690 | freeFunc: ffi_demucs_ffi_rust_future_free_f64,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_free_f64' in scope
691 | liftFunc: FfiConverterDouble.lift,
692 | errorHandler: FfiConverterTypeFfiDemucsError_lift
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:698:5: error: cannot find 'uniffi_demucs_ffi_fn_method_ffidemucsengine_loaded_model' in scope
696 | open func loadedModel() -> FfiDemucsModel? {
697 | return try! FfiConverterOptionTypeFfiDemucsModel.lift(try! rustCall() {
698 | uniffi_demucs_ffi_fn_method_ffidemucsengine_loaded_model(
| `- error: cannot find 'uniffi_demucs_ffi_fn_method_ffidemucsengine_loaded_model' in scope
699 | self.uniffiCloneHandle(),$0
700 | )
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:712:17: error: cannot find 'uniffi_demucs_ffi_fn_method_ffidemucsengine_separate' in scope
710 | try await uniffiRustCallAsync(
711 | rustFutureFunc: {
712 | uniffi_demucs_ffi_fn_method_ffidemucsengine_separate(
| `- error: cannot find 'uniffi_demucs_ffi_fn_method_ffidemucsengine_separate' in scope
713 | self.uniffiCloneHandle(),
714 | FfiConverterSequenceFloat.lower(left),FfiConverterSequenceFloat.lower(right),FfiConverterUInt32.lower(sampleRate),FfiConverterCallbackInterfaceFfiSeparationListener_lower(listener)
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:717:23: error: cannot find 'ffi_demucs_ffi_rust_future_poll_rust_buffer' in scope
715 | )
716 | },
717 | pollFunc: ffi_demucs_ffi_rust_future_poll_rust_buffer,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_poll_rust_buffer' in scope
718 | completeFunc: ffi_demucs_ffi_rust_future_complete_rust_buffer,
719 | freeFunc: ffi_demucs_ffi_rust_future_free_rust_buffer,
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:718:27: error: cannot find 'ffi_demucs_ffi_rust_future_complete_rust_buffer' in scope
716 | },
717 | pollFunc: ffi_demucs_ffi_rust_future_poll_rust_buffer,
718 | completeFunc: ffi_demucs_ffi_rust_future_complete_rust_buffer,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_complete_rust_buffer' in scope
719 | freeFunc: ffi_demucs_ffi_rust_future_free_rust_buffer,
720 | liftFunc: FfiConverterSequenceTypeFfiStem.lift,
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:719:23: error: cannot find 'ffi_demucs_ffi_rust_future_free_rust_buffer' in scope
717 | pollFunc: ffi_demucs_ffi_rust_future_poll_rust_buffer,
718 | completeFunc: ffi_demucs_ffi_rust_future_complete_rust_buffer,
719 | freeFunc: ffi_demucs_ffi_rust_future_free_rust_buffer,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_free_rust_buffer' in scope
720 | liftFunc: FfiConverterSequenceTypeFfiStem.lift,
721 | errorHandler: FfiConverterTypeFfiDemucsError_lift
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:732:17: error: cannot find 'uniffi_demucs_ffi_fn_method_ffidemucsengine_unload_model' in scope
730 | try! await uniffiRustCallAsync(
731 | rustFutureFunc: {
732 | uniffi_demucs_ffi_fn_method_ffidemucsengine_unload_model(
| `- error: cannot find 'uniffi_demucs_ffi_fn_method_ffidemucsengine_unload_model' in scope
733 | self.uniffiCloneHandle()
734 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:737:23: error: cannot find 'ffi_demucs_ffi_rust_future_poll_i8' in scope
735 | )
736 | },
737 | pollFunc: ffi_demucs_ffi_rust_future_poll_i8,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_poll_i8' in scope
738 | completeFunc: ffi_demucs_ffi_rust_future_complete_i8,
739 | freeFunc: ffi_demucs_ffi_rust_future_free_i8,
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:738:27: error: cannot find 'ffi_demucs_ffi_rust_future_complete_i8' in scope
736 | },
737 | pollFunc: ffi_demucs_ffi_rust_future_poll_i8,
738 | completeFunc: ffi_demucs_ffi_rust_future_complete_i8,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_complete_i8' in scope
739 | freeFunc: ffi_demucs_ffi_rust_future_free_i8,
740 | liftFunc: FfiConverterBool.lift,
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:739:23: error: cannot find 'ffi_demucs_ffi_rust_future_free_i8' in scope
737 | pollFunc: ffi_demucs_ffi_rust_future_poll_i8,
738 | completeFunc: ffi_demucs_ffi_rust_future_complete_i8,
739 | freeFunc: ffi_demucs_ffi_rust_future_free_i8,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_free_i8' in scope
740 | liftFunc: FfiConverterBool.lift,
741 | errorHandler: nil
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:741:27: error: 'nil' requires a contextual type
739 | freeFunc: ffi_demucs_ffi_rust_future_free_i8,
740 | liftFunc: FfiConverterBool.lift,
741 | errorHandler: nil
| `- error: 'nil' requires a contextual type
742 |
743 | )
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:754:17: error: cannot find 'uniffi_demucs_ffi_fn_method_ffidemucsengine_warmup' in scope
752 | try await uniffiRustCallAsync(
753 | rustFutureFunc: {
754 | uniffi_demucs_ffi_fn_method_ffidemucsengine_warmup(
| `- error: cannot find 'uniffi_demucs_ffi_fn_method_ffidemucsengine_warmup' in scope
755 | self.uniffiCloneHandle()
756 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:759:23: error: cannot find 'ffi_demucs_ffi_rust_future_poll_void' in scope
757 | )
758 | },
759 | pollFunc: ffi_demucs_ffi_rust_future_poll_void,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_poll_void' in scope
760 | completeFunc: ffi_demucs_ffi_rust_future_complete_void,
761 | freeFunc: ffi_demucs_ffi_rust_future_free_void,
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:760:27: error: cannot find 'ffi_demucs_ffi_rust_future_complete_void' in scope
758 | },
759 | pollFunc: ffi_demucs_ffi_rust_future_poll_void,
760 | completeFunc: ffi_demucs_ffi_rust_future_complete_void,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_complete_void' in scope
761 | freeFunc: ffi_demucs_ffi_rust_future_free_void,
762 | liftFunc: { $0 },
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:761:23: error: cannot find 'ffi_demucs_ffi_rust_future_free_void' in scope
759 | pollFunc: ffi_demucs_ffi_rust_future_poll_void,
760 | completeFunc: ffi_demucs_ffi_rust_future_complete_void,
761 | freeFunc: ffi_demucs_ffi_rust_future_free_void,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_free_void' in scope
762 | liftFunc: { $0 },
763 | errorHandler: FfiConverterTypeFfiDemucsError_lift
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1439:5: error: cannot find 'uniffi_demucs_ffi_fn_init_callback_vtable_ffidownloadlistener' in scope
1437 |
1438 | private func uniffiCallbackInitFfiDownloadListener() {
1439 | uniffi_demucs_ffi_fn_init_callback_vtable_ffidownloadlistener(UniffiCallbackInterfaceFfiDownloadListener.vtable)
| `- error: cannot find 'uniffi_demucs_ffi_fn_init_callback_vtable_ffidownloadlistener' in scope
1440 | }
1441 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1568:5: error: cannot find 'uniffi_demucs_ffi_fn_init_callback_vtable_ffiseparationlistener' in scope
1566 |
1567 | private func uniffiCallbackInitFfiSeparationListener() {
1568 | uniffi_demucs_ffi_fn_init_callback_vtable_ffiseparationlistener(UniffiCallbackInterfaceFfiSeparationListener.vtable)
| `- error: cannot find 'uniffi_demucs_ffi_fn_init_callback_vtable_ffiseparationlistener' in scope
1569 | }
1570 |
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1828:5: error: cannot find 'uniffi_demucs_ffi_fn_func_all_models' in scope
1826 | public func allModels() -> [FfiModelMetadata] {
1827 | return try! FfiConverterSequenceTypeFfiModelMetadata.lift(try! rustCall() {
1828 | uniffi_demucs_ffi_fn_func_all_models($0
| `- error: cannot find 'uniffi_demucs_ffi_fn_func_all_models' in scope
1829 | )
1830 | })
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1834:5: error: cannot find 'uniffi_demucs_ffi_fn_func_cached_model_path' in scope
1832 | public func cachedModelPath(model: FfiDemucsModel) -> String? {
1833 | return try! FfiConverterOptionString.lift(try! rustCall() {
1834 | uniffi_demucs_ffi_fn_func_cached_model_path(
| `- error: cannot find 'uniffi_demucs_ffi_fn_func_cached_model_path' in scope
1835 | FfiConverterTypeFfiDemucsModel_lower(model),$0
1836 | )
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1844:5: error: cannot find 'uniffi_demucs_ffi_fn_func_chunk_length' in scope
1842 | public func chunkLength() -> UInt64 {
1843 | return try! FfiConverterUInt64.lift(try! rustCall() {
1844 | uniffi_demucs_ffi_fn_func_chunk_length($0
| `- error: cannot find 'uniffi_demucs_ffi_fn_func_chunk_length' in scope
1845 | )
1846 | })
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1854:5: error: cannot find 'uniffi_demucs_ffi_fn_func_configure_cache_dir' in scope
1852 | */
1853 | public func configureCacheDir(path: String) {try! rustCall() {
1854 | uniffi_demucs_ffi_fn_func_configure_cache_dir(
| `- error: cannot find 'uniffi_demucs_ffi_fn_func_configure_cache_dir' in scope
1855 | FfiConverterString.lower(path),$0
1856 | )
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1864:5: error: cannot find 'uniffi_demucs_ffi_fn_func_delete_cached_model' in scope
1862 | public func deleteCachedModel(model: FfiDemucsModel) -> Bool {
1863 | return try! FfiConverterBool.lift(try! rustCall() {
1864 | uniffi_demucs_ffi_fn_func_delete_cached_model(
| `- error: cannot find 'uniffi_demucs_ffi_fn_func_delete_cached_model' in scope
1865 | FfiConverterTypeFfiDemucsModel_lower(model),$0
1866 | )
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1877:17: error: cannot find 'uniffi_demucs_ffi_fn_func_download_model' in scope
1875 | try await uniffiRustCallAsync(
1876 | rustFutureFunc: {
1877 | uniffi_demucs_ffi_fn_func_download_model(FfiConverterTypeFfiDemucsModel_lower(model),FfiConverterCallbackInterfaceFfiDownloadListener_lower(listener)
| `- error: cannot find 'uniffi_demucs_ffi_fn_func_download_model' in scope
1878 | )
1879 | },
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1880:23: error: cannot find 'ffi_demucs_ffi_rust_future_poll_void' in scope
1878 | )
1879 | },
1880 | pollFunc: ffi_demucs_ffi_rust_future_poll_void,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_poll_void' in scope
1881 | completeFunc: ffi_demucs_ffi_rust_future_complete_void,
1882 | freeFunc: ffi_demucs_ffi_rust_future_free_void,
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1881:27: error: cannot find 'ffi_demucs_ffi_rust_future_complete_void' in scope
1879 | },
1880 | pollFunc: ffi_demucs_ffi_rust_future_poll_void,
1881 | completeFunc: ffi_demucs_ffi_rust_future_complete_void,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_complete_void' in scope
1882 | freeFunc: ffi_demucs_ffi_rust_future_free_void,
1883 | liftFunc: { $0 },
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1882:23: error: cannot find 'ffi_demucs_ffi_rust_future_free_void' in scope
1880 | pollFunc: ffi_demucs_ffi_rust_future_poll_void,
1881 | completeFunc: ffi_demucs_ffi_rust_future_complete_void,
1882 | freeFunc: ffi_demucs_ffi_rust_future_free_void,
| `- error: cannot find 'ffi_demucs_ffi_rust_future_free_void' in scope
1883 | liftFunc: { $0 },
1884 | errorHandler: FfiConverterTypeFfiDemucsError_lift
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1893:5: error: cannot find 'uniffi_demucs_ffi_fn_func_is_model_cached' in scope
1891 | public func isModelCached(model: FfiDemucsModel) -> Bool {
1892 | return try! FfiConverterBool.lift(try! rustCall() {
1893 | uniffi_demucs_ffi_fn_func_is_model_cached(
| `- error: cannot find 'uniffi_demucs_ffi_fn_func_is_model_cached' in scope
1894 | FfiConverterTypeFfiDemucsModel_lower(model),$0
1895 | )
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1900:5: error: cannot find 'uniffi_demucs_ffi_fn_func_model_metadata' in scope
1898 | public func modelMetadata(model: FfiDemucsModel) -> FfiModelMetadata {
1899 | return try! FfiConverterTypeFfiModelMetadata_lift(try! rustCall() {
1900 | uniffi_demucs_ffi_fn_func_model_metadata(
| `- error: cannot find 'uniffi_demucs_ffi_fn_func_model_metadata' in scope
1901 | FfiConverterTypeFfiDemucsModel_lower(model),$0
1902 | )
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.swift:1912:5: error: cannot find 'uniffi_demucs_ffi_fn_func_num_chunks' in scope
1910 | public func numChunks(nSamples: UInt64, sampleRate: UInt32) -> UInt64 {
1911 | return try! FfiConverterUInt64.lift(try! rustCall() {
1912 | uniffi_demucs_ffi_fn_func_num_chunks(
| `- error: cannot find 'uniffi_demucs_ffi_fn_func_num_chunks' in scope
1913 | FfiConverterUInt64.lower(nSamples),
1914 | FfiConverterUInt32.lower(sampleRate),$0
/host/spi-builder-workspace/Sources/Demucs/demucs_ffi.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/Sources/Demucs/demucs_ffi.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_demucs_ffi_rustbuffer_from_bytes(ForeignBytes(bufferPointer: ptr), $0) }
29 | }
BUILD FAILURE 6.2 wasm