Build Information
Failed to build ErmisFmp4Parser, reference 1.0.0 (6f35ea), with Swift 6.1 for Wasm on 15 Dec 2025 16:04:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/giapdeviscool/fmp4_parser_swift_package.git
Reference: 1.0.0
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/giapdeviscool/fmp4_parser_swift_package
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 6f35ea2 swiftpackage
Cloned https://github.com/giapdeviscool/fmp4_parser_swift_package.git
Revision (git rev-parse @):
6f35ea2c3117f00f6f21d92bd9784c53e96b3554
SUCCESS checkout https://github.com/giapdeviscool/fmp4_parser_swift_package.git at 1.0.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/giapdeviscool/fmp4_parser_swift_package.git
https://github.com/giapdeviscool/fmp4_parser_swift_package.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "ErmisFmp4Parser",
"name" : "ErmisFmp4Parser",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "ErmisFmp4Parser",
"targets" : [
"ErmisFmp4Parser"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ErmisFmp4ParserFFI",
"module_type" : "BinaryTarget",
"name" : "ErmisFmp4ParserFFI",
"path" : "ErmisFmp4ParserFFI.xcframework",
"product_memberships" : [
"ErmisFmp4Parser"
],
"sources" : [
],
"type" : "binary"
},
{
"c99name" : "ErmisFmp4Parser",
"module_type" : "SwiftTarget",
"name" : "ErmisFmp4Parser",
"path" : "Sources/ErmisFmp4Parser",
"product_memberships" : [
"ErmisFmp4Parser"
],
"sources" : [
"ErmisFmp4Parser.swift"
],
"target_dependencies" : [
"ErmisFmp4ParserFFI"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:dbcbf45695e2d1afcaee9a5a93239e71a6cc4a5872f338d6e993e9ceefe7df1b
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
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/4] Emitting module ErmisFmp4Parser
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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 | uniffiEnsureInitialized()
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.swift:444:25: error: cannot find type 'RustBuffer' in scope
442 | fileprivate struct FfiConverterString: FfiConverter {
443 | typealias SwiftType = String
444 | typealias FfiType = RustBuffer
| `- error: cannot find type 'RustBuffer' in scope
445 |
446 | public static func lift(_ value: RustBuffer) throws -> String {
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:446:38: error: cannot find type 'RustBuffer' in scope
444 | typealias FfiType = RustBuffer
445 |
446 | public static func lift(_ value: RustBuffer) throws -> String {
| `- error: cannot find type 'RustBuffer' in scope
447 | defer {
448 | value.deallocate()
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:457:50: error: cannot find type 'RustBuffer' in scope
455 | }
456 |
457 | public static func lower(_ value: String) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
458 | return value.utf8CString.withUnsafeBufferPointer { ptr in
459 | // The swift string gives us int8_t, we want uint8_t.
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:442: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 |
:
440 | @_documentation(visibility: private)
441 | #endif
442 | fileprivate struct FfiConverterString: FfiConverter {
| |- error: type 'FfiConverterString' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
443 | typealias SwiftType = String
444 | typealias FfiType = RustBuffer
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:483: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 |
:
481 | @_documentation(visibility: private)
482 | #endif
483 | fileprivate struct FfiConverterData: FfiConverterRustBuffer {
| |- error: type 'FfiConverterData' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
484 | typealias SwiftType = Data
485 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:745:15: error: type 'FfiConverterTypeDemuxedFrame' 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
:
743 | @_documentation(visibility: private)
744 | #endif
745 | public struct FfiConverterTypeDemuxedFrame: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeDemuxedFrame' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
746 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DemuxedFrame {
747 | return
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:768:54: error: cannot find type 'RustBuffer' in scope
766 | @_documentation(visibility: private)
767 | #endif
768 | public func FfiConverterTypeDemuxedFrame_lift(_ buf: RustBuffer) throws -> DemuxedFrame {
| `- error: cannot find type 'RustBuffer' in scope
769 | return try FfiConverterTypeDemuxedFrame.lift(buf)
770 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:775:74: error: cannot find type 'RustBuffer' in scope
773 | @_documentation(visibility: private)
774 | #endif
775 | public func FfiConverterTypeDemuxedFrame_lower(_ value: DemuxedFrame) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
776 | return FfiConverterTypeDemuxedFrame.lower(value)
777 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:815:15: error: type 'FfiConverterTypeParsedSegment' 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
:
813 | @_documentation(visibility: private)
814 | #endif
815 | public struct FfiConverterTypeParsedSegment: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeParsedSegment' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
816 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ParsedSegment {
817 | return
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:834:55: error: cannot find type 'RustBuffer' in scope
832 | @_documentation(visibility: private)
833 | #endif
834 | public func FfiConverterTypeParsedSegment_lift(_ buf: RustBuffer) throws -> ParsedSegment {
| `- error: cannot find type 'RustBuffer' in scope
835 | return try FfiConverterTypeParsedSegment.lift(buf)
836 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:841:76: error: cannot find type 'RustBuffer' in scope
839 | @_documentation(visibility: private)
840 | #endif
841 | public func FfiConverterTypeParsedSegment_lower(_ value: ParsedSegment) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
842 | return FfiConverterTypeParsedSegment.lower(value)
843 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:862:15: error: type 'FfiConverterTypeSegmentParseError' 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 |
:
860 | @_documentation(visibility: private)
861 | #endif
862 | public struct FfiConverterTypeSegmentParseError: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeSegmentParseError' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
863 | typealias SwiftType = SegmentParseError
864 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:923:20: error: type 'FfiConverterOptionUInt32' 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 |
:
921 | @_documentation(visibility: private)
922 | #endif
923 | fileprivate struct FfiConverterOptionUInt32: FfiConverterRustBuffer {
| |- error: type 'FfiConverterOptionUInt32' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
924 | typealias SwiftType = UInt32?
925 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:947:20: error: type 'FfiConverterSequenceTypeDemuxedFrame' 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 |
:
945 | @_documentation(visibility: private)
946 | #endif
947 | fileprivate struct FfiConverterSequenceTypeDemuxedFrame: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeDemuxedFrame' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
948 | typealias SwiftType = [DemuxedFrame]
949 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:976:13: warning: var 'initializationResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
974 | // Use a global variable to perform the versioning checks. Swift ensures that
975 | // the code inside is only computed once.
976 | private var initializationResult: InitializationResult = {
| |- warning: var 'initializationResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'initializationResult' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'initializationResult' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
977 | // Get the bindings contract version from our ComponentInterface
978 | let bindings_contract_version = 26
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:980:40: error: cannot find 'ffi_ermis_call_node_binding_uniffi_contract_version' in scope
978 | let bindings_contract_version = 26
979 | // Get the scaffolding contract version by calling the into the dylib
980 | let scaffolding_contract_version = ffi_ermis_call_node_binding_uniffi_contract_version()
| `- error: cannot find 'ffi_ermis_call_node_binding_uniffi_contract_version' in scope
981 | if bindings_contract_version != scaffolding_contract_version {
982 | return InitializationResult.contractVersionMismatch
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:984:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_aac_frame' in scope
982 | return InitializationResult.contractVersionMismatch
983 | }
984 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_aac_frame() != 1124) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_aac_frame' in scope
985 | return InitializationResult.apiChecksumMismatch
986 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:987:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_video_nalus' in scope
985 | return InitializationResult.apiChecksumMismatch
986 | }
987 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_video_nalus() != 13470) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_video_nalus' in scope
988 | return InitializationResult.apiChecksumMismatch
989 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:990:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_keyframe_sample' in scope
988 | return InitializationResult.apiChecksumMismatch
989 | }
990 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_keyframe_sample() != 546) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_keyframe_sample' in scope
991 | return InitializationResult.apiChecksumMismatch
992 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:993:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_video_sample' in scope
991 | return InitializationResult.apiChecksumMismatch
992 | }
993 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_video_sample() != 10591) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_video_sample' in scope
994 | return InitializationResult.apiChecksumMismatch
995 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:996:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_parse_segment' in scope
994 | return InitializationResult.apiChecksumMismatch
995 | }
996 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_parse_segment() != 60950) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_parse_segment' in scope
997 | return InitializationResult.apiChecksumMismatch
998 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:999:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_constructor_segmentparser_new' in scope
997 | return InitializationResult.apiChecksumMismatch
998 | }
999 | if (uniffi_ermis_call_node_binding_checksum_constructor_segmentparser_new() != 32991) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_constructor_segmentparser_new' in scope
1000 | return InitializationResult.apiChecksumMismatch
1001 | }
[4/4] Compiling ErmisFmp4Parser ErmisFmp4Parser.swift
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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 | uniffiEnsureInitialized()
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.swift:444:25: error: cannot find type 'RustBuffer' in scope
442 | fileprivate struct FfiConverterString: FfiConverter {
443 | typealias SwiftType = String
444 | typealias FfiType = RustBuffer
| `- error: cannot find type 'RustBuffer' in scope
445 |
446 | public static func lift(_ value: RustBuffer) throws -> String {
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:446:38: error: cannot find type 'RustBuffer' in scope
444 | typealias FfiType = RustBuffer
445 |
446 | public static func lift(_ value: RustBuffer) throws -> String {
| `- error: cannot find type 'RustBuffer' in scope
447 | defer {
448 | value.deallocate()
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:457:50: error: cannot find type 'RustBuffer' in scope
455 | }
456 |
457 | public static func lower(_ value: String) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
458 | return value.utf8CString.withUnsafeBufferPointer { ptr in
459 | // The swift string gives us int8_t, we want uint8_t.
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:442: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 |
:
440 | @_documentation(visibility: private)
441 | #endif
442 | fileprivate struct FfiConverterString: FfiConverter {
| |- error: type 'FfiConverterString' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
443 | typealias SwiftType = String
444 | typealias FfiType = RustBuffer
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:483: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 |
:
481 | @_documentation(visibility: private)
482 | #endif
483 | fileprivate struct FfiConverterData: FfiConverterRustBuffer {
| |- error: type 'FfiConverterData' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
484 | typealias SwiftType = Data
485 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:745:15: error: type 'FfiConverterTypeDemuxedFrame' 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
:
743 | @_documentation(visibility: private)
744 | #endif
745 | public struct FfiConverterTypeDemuxedFrame: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeDemuxedFrame' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
746 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DemuxedFrame {
747 | return
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:768:54: error: cannot find type 'RustBuffer' in scope
766 | @_documentation(visibility: private)
767 | #endif
768 | public func FfiConverterTypeDemuxedFrame_lift(_ buf: RustBuffer) throws -> DemuxedFrame {
| `- error: cannot find type 'RustBuffer' in scope
769 | return try FfiConverterTypeDemuxedFrame.lift(buf)
770 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:775:74: error: cannot find type 'RustBuffer' in scope
773 | @_documentation(visibility: private)
774 | #endif
775 | public func FfiConverterTypeDemuxedFrame_lower(_ value: DemuxedFrame) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
776 | return FfiConverterTypeDemuxedFrame.lower(value)
777 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:815:15: error: type 'FfiConverterTypeParsedSegment' 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
:
813 | @_documentation(visibility: private)
814 | #endif
815 | public struct FfiConverterTypeParsedSegment: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeParsedSegment' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
816 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ParsedSegment {
817 | return
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:834:55: error: cannot find type 'RustBuffer' in scope
832 | @_documentation(visibility: private)
833 | #endif
834 | public func FfiConverterTypeParsedSegment_lift(_ buf: RustBuffer) throws -> ParsedSegment {
| `- error: cannot find type 'RustBuffer' in scope
835 | return try FfiConverterTypeParsedSegment.lift(buf)
836 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:841:76: error: cannot find type 'RustBuffer' in scope
839 | @_documentation(visibility: private)
840 | #endif
841 | public func FfiConverterTypeParsedSegment_lower(_ value: ParsedSegment) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
842 | return FfiConverterTypeParsedSegment.lower(value)
843 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:862:15: error: type 'FfiConverterTypeSegmentParseError' 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 |
:
860 | @_documentation(visibility: private)
861 | #endif
862 | public struct FfiConverterTypeSegmentParseError: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeSegmentParseError' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
863 | typealias SwiftType = SegmentParseError
864 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:923:20: error: type 'FfiConverterOptionUInt32' 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 |
:
921 | @_documentation(visibility: private)
922 | #endif
923 | fileprivate struct FfiConverterOptionUInt32: FfiConverterRustBuffer {
| |- error: type 'FfiConverterOptionUInt32' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
924 | typealias SwiftType = UInt32?
925 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:947:20: error: type 'FfiConverterSequenceTypeDemuxedFrame' 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 |
:
945 | @_documentation(visibility: private)
946 | #endif
947 | fileprivate struct FfiConverterSequenceTypeDemuxedFrame: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeDemuxedFrame' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
948 | typealias SwiftType = [DemuxedFrame]
949 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:976:13: warning: var 'initializationResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
974 | // Use a global variable to perform the versioning checks. Swift ensures that
975 | // the code inside is only computed once.
976 | private var initializationResult: InitializationResult = {
| |- warning: var 'initializationResult' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'initializationResult' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'initializationResult' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
977 | // Get the bindings contract version from our ComponentInterface
978 | let bindings_contract_version = 26
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:980:40: error: cannot find 'ffi_ermis_call_node_binding_uniffi_contract_version' in scope
978 | let bindings_contract_version = 26
979 | // Get the scaffolding contract version by calling the into the dylib
980 | let scaffolding_contract_version = ffi_ermis_call_node_binding_uniffi_contract_version()
| `- error: cannot find 'ffi_ermis_call_node_binding_uniffi_contract_version' in scope
981 | if bindings_contract_version != scaffolding_contract_version {
982 | return InitializationResult.contractVersionMismatch
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:984:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_aac_frame' in scope
982 | return InitializationResult.contractVersionMismatch
983 | }
984 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_aac_frame() != 1124) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_aac_frame' in scope
985 | return InitializationResult.apiChecksumMismatch
986 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:987:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_video_nalus' in scope
985 | return InitializationResult.apiChecksumMismatch
986 | }
987 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_video_nalus() != 13470) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_video_nalus' in scope
988 | return InitializationResult.apiChecksumMismatch
989 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:990:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_keyframe_sample' in scope
988 | return InitializationResult.apiChecksumMismatch
989 | }
990 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_keyframe_sample() != 546) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_keyframe_sample' in scope
991 | return InitializationResult.apiChecksumMismatch
992 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:993:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_video_sample' in scope
991 | return InitializationResult.apiChecksumMismatch
992 | }
993 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_video_sample() != 10591) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_video_sample' in scope
994 | return InitializationResult.apiChecksumMismatch
995 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:996:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_parse_segment' in scope
994 | return InitializationResult.apiChecksumMismatch
995 | }
996 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_parse_segment() != 60950) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_parse_segment' in scope
997 | return InitializationResult.apiChecksumMismatch
998 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:999:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_constructor_segmentparser_new' in scope
997 | return InitializationResult.apiChecksumMismatch
998 | }
999 | if (uniffi_ermis_call_node_binding_checksum_constructor_segmentparser_new() != 32991) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_constructor_segmentparser_new' in scope
1000 | return InitializationResult.apiChecksumMismatch
1001 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.swift:285:22: error: cannot find 'RustCallStatus' in scope
283 | ) throws -> T {
284 | uniffiEnsureInitialized()
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/ErmisFmp4Parser/ErmisFmp4Parser.swift:565:32: error: cannot find 'uniffi_ermis_call_node_binding_fn_clone_segmentparser' in scope
563 | #endif
564 | public func uniffiClonePointer() -> UnsafeMutableRawPointer {
565 | return try! rustCall { uniffi_ermis_call_node_binding_fn_clone_segmentparser(self.pointer, $0) }
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_clone_segmentparser' in scope
566 | }
567 | public convenience init(hevc: Bool) {
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:570:5: error: cannot find 'uniffi_ermis_call_node_binding_fn_constructor_segmentparser_new' in scope
568 | let pointer =
569 | try! rustCall() {
570 | uniffi_ermis_call_node_binding_fn_constructor_segmentparser_new(
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_constructor_segmentparser_new' in scope
571 | FfiConverterBool.lower(hevc),$0
572 | )
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:582:25: error: cannot find 'uniffi_ermis_call_node_binding_fn_free_segmentparser' in scope
580 | }
581 |
582 | try! rustCall { uniffi_ermis_call_node_binding_fn_free_segmentparser(pointer, $0) }
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_free_segmentparser' in scope
583 | }
584 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:593:5: error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_extract_aac_frame' in scope
591 | open func extractAacFrame(sample: Data)throws -> Data {
592 | return try FfiConverterData.lift(try rustCallWithError(FfiConverterTypeSegmentParseError.lift) {
593 | uniffi_ermis_call_node_binding_fn_method_segmentparser_extract_aac_frame(self.uniffiClonePointer(),
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_extract_aac_frame' in scope
594 | FfiConverterData.lower(sample),$0
595 | )
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:604:5: error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_extract_video_nalus' in scope
602 | open func extractVideoNalus(sample: Data)throws -> Data {
603 | return try FfiConverterData.lift(try rustCallWithError(FfiConverterTypeSegmentParseError.lift) {
604 | uniffi_ermis_call_node_binding_fn_method_segmentparser_extract_video_nalus(self.uniffiClonePointer(),
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_extract_video_nalus' in scope
605 | FfiConverterData.lower(sample),$0
606 | )
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:615:5: error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_is_keyframe_sample' in scope
613 | open func isKeyframeSample(sample: Data) -> Bool {
614 | return try! FfiConverterBool.lift(try! rustCall() {
615 | uniffi_ermis_call_node_binding_fn_method_segmentparser_is_keyframe_sample(self.uniffiClonePointer(),
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_is_keyframe_sample' in scope
616 | FfiConverterData.lower(sample),$0
617 | )
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:626:5: error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_is_video_sample' in scope
624 | open func isVideoSample(sample: Data) -> Bool {
625 | return try! FfiConverterBool.lift(try! rustCall() {
626 | uniffi_ermis_call_node_binding_fn_method_segmentparser_is_video_sample(self.uniffiClonePointer(),
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_is_video_sample' in scope
627 | FfiConverterData.lower(sample),$0
628 | )
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:637:5: error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_parse_segment' in scope
635 | open func parseSegment(payload: Data)throws -> ParsedSegment {
636 | return try FfiConverterTypeParsedSegment.lift(try rustCallWithError(FfiConverterTypeSegmentParseError.lift) {
637 | uniffi_ermis_call_node_binding_fn_method_segmentparser_parse_segment(self.uniffiClonePointer(),
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_parse_segment' in scope
638 | FfiConverterData.lower(payload),$0
639 | )
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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_ermis_call_node_binding_rustbuffer_from_bytes(ForeignBytes(bufferPointer: ptr), $0) }
29 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:dbcbf45695e2d1afcaee9a5a93239e71a6cc4a5872f338d6e993e9ceefe7df1b
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module ErmisFmp4Parser
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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 | uniffiEnsureInitialized()
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.swift:444:25: error: cannot find type 'RustBuffer' in scope
442 | fileprivate struct FfiConverterString: FfiConverter {
443 | typealias SwiftType = String
444 | typealias FfiType = RustBuffer
| `- error: cannot find type 'RustBuffer' in scope
445 |
446 | public static func lift(_ value: RustBuffer) throws -> String {
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:446:38: error: cannot find type 'RustBuffer' in scope
444 | typealias FfiType = RustBuffer
445 |
446 | public static func lift(_ value: RustBuffer) throws -> String {
| `- error: cannot find type 'RustBuffer' in scope
447 | defer {
448 | value.deallocate()
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:457:50: error: cannot find type 'RustBuffer' in scope
455 | }
456 |
457 | public static func lower(_ value: String) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
458 | return value.utf8CString.withUnsafeBufferPointer { ptr in
459 | // The swift string gives us int8_t, we want uint8_t.
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:442: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 |
:
440 | @_documentation(visibility: private)
441 | #endif
442 | fileprivate struct FfiConverterString: FfiConverter {
| |- error: type 'FfiConverterString' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
443 | typealias SwiftType = String
444 | typealias FfiType = RustBuffer
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:483: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 |
:
481 | @_documentation(visibility: private)
482 | #endif
483 | fileprivate struct FfiConverterData: FfiConverterRustBuffer {
| |- error: type 'FfiConverterData' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
484 | typealias SwiftType = Data
485 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:745:15: error: type 'FfiConverterTypeDemuxedFrame' 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
:
743 | @_documentation(visibility: private)
744 | #endif
745 | public struct FfiConverterTypeDemuxedFrame: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeDemuxedFrame' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
746 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DemuxedFrame {
747 | return
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:768:54: error: cannot find type 'RustBuffer' in scope
766 | @_documentation(visibility: private)
767 | #endif
768 | public func FfiConverterTypeDemuxedFrame_lift(_ buf: RustBuffer) throws -> DemuxedFrame {
| `- error: cannot find type 'RustBuffer' in scope
769 | return try FfiConverterTypeDemuxedFrame.lift(buf)
770 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:775:74: error: cannot find type 'RustBuffer' in scope
773 | @_documentation(visibility: private)
774 | #endif
775 | public func FfiConverterTypeDemuxedFrame_lower(_ value: DemuxedFrame) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
776 | return FfiConverterTypeDemuxedFrame.lower(value)
777 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:815:15: error: type 'FfiConverterTypeParsedSegment' 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
:
813 | @_documentation(visibility: private)
814 | #endif
815 | public struct FfiConverterTypeParsedSegment: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeParsedSegment' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
816 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ParsedSegment {
817 | return
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:834:55: error: cannot find type 'RustBuffer' in scope
832 | @_documentation(visibility: private)
833 | #endif
834 | public func FfiConverterTypeParsedSegment_lift(_ buf: RustBuffer) throws -> ParsedSegment {
| `- error: cannot find type 'RustBuffer' in scope
835 | return try FfiConverterTypeParsedSegment.lift(buf)
836 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:841:76: error: cannot find type 'RustBuffer' in scope
839 | @_documentation(visibility: private)
840 | #endif
841 | public func FfiConverterTypeParsedSegment_lower(_ value: ParsedSegment) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
842 | return FfiConverterTypeParsedSegment.lower(value)
843 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:862:15: error: type 'FfiConverterTypeSegmentParseError' 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 |
:
860 | @_documentation(visibility: private)
861 | #endif
862 | public struct FfiConverterTypeSegmentParseError: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeSegmentParseError' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
863 | typealias SwiftType = SegmentParseError
864 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:923:20: error: type 'FfiConverterOptionUInt32' 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 |
:
921 | @_documentation(visibility: private)
922 | #endif
923 | fileprivate struct FfiConverterOptionUInt32: FfiConverterRustBuffer {
| |- error: type 'FfiConverterOptionUInt32' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
924 | typealias SwiftType = UInt32?
925 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:947:20: error: type 'FfiConverterSequenceTypeDemuxedFrame' 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 |
:
945 | @_documentation(visibility: private)
946 | #endif
947 | fileprivate struct FfiConverterSequenceTypeDemuxedFrame: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeDemuxedFrame' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
948 | typealias SwiftType = [DemuxedFrame]
949 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:980:40: error: cannot find 'ffi_ermis_call_node_binding_uniffi_contract_version' in scope
978 | let bindings_contract_version = 26
979 | // Get the scaffolding contract version by calling the into the dylib
980 | let scaffolding_contract_version = ffi_ermis_call_node_binding_uniffi_contract_version()
| `- error: cannot find 'ffi_ermis_call_node_binding_uniffi_contract_version' in scope
981 | if bindings_contract_version != scaffolding_contract_version {
982 | return InitializationResult.contractVersionMismatch
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:984:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_aac_frame' in scope
982 | return InitializationResult.contractVersionMismatch
983 | }
984 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_aac_frame() != 1124) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_aac_frame' in scope
985 | return InitializationResult.apiChecksumMismatch
986 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:987:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_video_nalus' in scope
985 | return InitializationResult.apiChecksumMismatch
986 | }
987 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_video_nalus() != 13470) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_video_nalus' in scope
988 | return InitializationResult.apiChecksumMismatch
989 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:990:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_keyframe_sample' in scope
988 | return InitializationResult.apiChecksumMismatch
989 | }
990 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_keyframe_sample() != 546) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_keyframe_sample' in scope
991 | return InitializationResult.apiChecksumMismatch
992 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:993:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_video_sample' in scope
991 | return InitializationResult.apiChecksumMismatch
992 | }
993 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_video_sample() != 10591) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_video_sample' in scope
994 | return InitializationResult.apiChecksumMismatch
995 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:996:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_parse_segment' in scope
994 | return InitializationResult.apiChecksumMismatch
995 | }
996 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_parse_segment() != 60950) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_parse_segment' in scope
997 | return InitializationResult.apiChecksumMismatch
998 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:999:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_constructor_segmentparser_new' in scope
997 | return InitializationResult.apiChecksumMismatch
998 | }
999 | if (uniffi_ermis_call_node_binding_checksum_constructor_segmentparser_new() != 32991) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_constructor_segmentparser_new' in scope
1000 | return InitializationResult.apiChecksumMismatch
1001 | }
[3/3] Compiling ErmisFmp4Parser ErmisFmp4Parser.swift
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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 | uniffiEnsureInitialized()
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.swift:444:25: error: cannot find type 'RustBuffer' in scope
442 | fileprivate struct FfiConverterString: FfiConverter {
443 | typealias SwiftType = String
444 | typealias FfiType = RustBuffer
| `- error: cannot find type 'RustBuffer' in scope
445 |
446 | public static func lift(_ value: RustBuffer) throws -> String {
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:446:38: error: cannot find type 'RustBuffer' in scope
444 | typealias FfiType = RustBuffer
445 |
446 | public static func lift(_ value: RustBuffer) throws -> String {
| `- error: cannot find type 'RustBuffer' in scope
447 | defer {
448 | value.deallocate()
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:457:50: error: cannot find type 'RustBuffer' in scope
455 | }
456 |
457 | public static func lower(_ value: String) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
458 | return value.utf8CString.withUnsafeBufferPointer { ptr in
459 | // The swift string gives us int8_t, we want uint8_t.
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:442: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 |
:
440 | @_documentation(visibility: private)
441 | #endif
442 | fileprivate struct FfiConverterString: FfiConverter {
| |- error: type 'FfiConverterString' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
443 | typealias SwiftType = String
444 | typealias FfiType = RustBuffer
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:483: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 |
:
481 | @_documentation(visibility: private)
482 | #endif
483 | fileprivate struct FfiConverterData: FfiConverterRustBuffer {
| |- error: type 'FfiConverterData' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
484 | typealias SwiftType = Data
485 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:745:15: error: type 'FfiConverterTypeDemuxedFrame' 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
:
743 | @_documentation(visibility: private)
744 | #endif
745 | public struct FfiConverterTypeDemuxedFrame: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeDemuxedFrame' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
746 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> DemuxedFrame {
747 | return
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:768:54: error: cannot find type 'RustBuffer' in scope
766 | @_documentation(visibility: private)
767 | #endif
768 | public func FfiConverterTypeDemuxedFrame_lift(_ buf: RustBuffer) throws -> DemuxedFrame {
| `- error: cannot find type 'RustBuffer' in scope
769 | return try FfiConverterTypeDemuxedFrame.lift(buf)
770 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:775:74: error: cannot find type 'RustBuffer' in scope
773 | @_documentation(visibility: private)
774 | #endif
775 | public func FfiConverterTypeDemuxedFrame_lower(_ value: DemuxedFrame) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
776 | return FfiConverterTypeDemuxedFrame.lower(value)
777 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:815:15: error: type 'FfiConverterTypeParsedSegment' 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
:
813 | @_documentation(visibility: private)
814 | #endif
815 | public struct FfiConverterTypeParsedSegment: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeParsedSegment' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
816 | public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ParsedSegment {
817 | return
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:834:55: error: cannot find type 'RustBuffer' in scope
832 | @_documentation(visibility: private)
833 | #endif
834 | public func FfiConverterTypeParsedSegment_lift(_ buf: RustBuffer) throws -> ParsedSegment {
| `- error: cannot find type 'RustBuffer' in scope
835 | return try FfiConverterTypeParsedSegment.lift(buf)
836 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:841:76: error: cannot find type 'RustBuffer' in scope
839 | @_documentation(visibility: private)
840 | #endif
841 | public func FfiConverterTypeParsedSegment_lower(_ value: ParsedSegment) -> RustBuffer {
| `- error: cannot find type 'RustBuffer' in scope
842 | return FfiConverterTypeParsedSegment.lower(value)
843 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:862:15: error: type 'FfiConverterTypeSegmentParseError' 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 |
:
860 | @_documentation(visibility: private)
861 | #endif
862 | public struct FfiConverterTypeSegmentParseError: FfiConverterRustBuffer {
| |- error: type 'FfiConverterTypeSegmentParseError' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
863 | typealias SwiftType = SegmentParseError
864 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:923:20: error: type 'FfiConverterOptionUInt32' 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 |
:
921 | @_documentation(visibility: private)
922 | #endif
923 | fileprivate struct FfiConverterOptionUInt32: FfiConverterRustBuffer {
| |- error: type 'FfiConverterOptionUInt32' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
924 | typealias SwiftType = UInt32?
925 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:947:20: error: type 'FfiConverterSequenceTypeDemuxedFrame' 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 |
:
945 | @_documentation(visibility: private)
946 | #endif
947 | fileprivate struct FfiConverterSequenceTypeDemuxedFrame: FfiConverterRustBuffer {
| |- error: type 'FfiConverterSequenceTypeDemuxedFrame' does not conform to protocol 'FfiConverter'
| `- note: add stubs for conformance
948 | typealias SwiftType = [DemuxedFrame]
949 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:980:40: error: cannot find 'ffi_ermis_call_node_binding_uniffi_contract_version' in scope
978 | let bindings_contract_version = 26
979 | // Get the scaffolding contract version by calling the into the dylib
980 | let scaffolding_contract_version = ffi_ermis_call_node_binding_uniffi_contract_version()
| `- error: cannot find 'ffi_ermis_call_node_binding_uniffi_contract_version' in scope
981 | if bindings_contract_version != scaffolding_contract_version {
982 | return InitializationResult.contractVersionMismatch
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:984:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_aac_frame' in scope
982 | return InitializationResult.contractVersionMismatch
983 | }
984 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_aac_frame() != 1124) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_aac_frame' in scope
985 | return InitializationResult.apiChecksumMismatch
986 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:987:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_video_nalus' in scope
985 | return InitializationResult.apiChecksumMismatch
986 | }
987 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_video_nalus() != 13470) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_extract_video_nalus' in scope
988 | return InitializationResult.apiChecksumMismatch
989 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:990:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_keyframe_sample' in scope
988 | return InitializationResult.apiChecksumMismatch
989 | }
990 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_keyframe_sample() != 546) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_keyframe_sample' in scope
991 | return InitializationResult.apiChecksumMismatch
992 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:993:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_video_sample' in scope
991 | return InitializationResult.apiChecksumMismatch
992 | }
993 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_video_sample() != 10591) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_is_video_sample' in scope
994 | return InitializationResult.apiChecksumMismatch
995 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:996:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_parse_segment' in scope
994 | return InitializationResult.apiChecksumMismatch
995 | }
996 | if (uniffi_ermis_call_node_binding_checksum_method_segmentparser_parse_segment() != 60950) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_method_segmentparser_parse_segment' in scope
997 | return InitializationResult.apiChecksumMismatch
998 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:999:9: error: cannot find 'uniffi_ermis_call_node_binding_checksum_constructor_segmentparser_new' in scope
997 | return InitializationResult.apiChecksumMismatch
998 | }
999 | if (uniffi_ermis_call_node_binding_checksum_constructor_segmentparser_new() != 32991) {
| `- error: cannot find 'uniffi_ermis_call_node_binding_checksum_constructor_segmentparser_new' in scope
1000 | return InitializationResult.apiChecksumMismatch
1001 | }
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.swift:285:22: error: cannot find 'RustCallStatus' in scope
283 | ) throws -> T {
284 | uniffiEnsureInitialized()
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/ErmisFmp4Parser/ErmisFmp4Parser.swift:565:32: error: cannot find 'uniffi_ermis_call_node_binding_fn_clone_segmentparser' in scope
563 | #endif
564 | public func uniffiClonePointer() -> UnsafeMutableRawPointer {
565 | return try! rustCall { uniffi_ermis_call_node_binding_fn_clone_segmentparser(self.pointer, $0) }
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_clone_segmentparser' in scope
566 | }
567 | public convenience init(hevc: Bool) {
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:570:5: error: cannot find 'uniffi_ermis_call_node_binding_fn_constructor_segmentparser_new' in scope
568 | let pointer =
569 | try! rustCall() {
570 | uniffi_ermis_call_node_binding_fn_constructor_segmentparser_new(
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_constructor_segmentparser_new' in scope
571 | FfiConverterBool.lower(hevc),$0
572 | )
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:582:25: error: cannot find 'uniffi_ermis_call_node_binding_fn_free_segmentparser' in scope
580 | }
581 |
582 | try! rustCall { uniffi_ermis_call_node_binding_fn_free_segmentparser(pointer, $0) }
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_free_segmentparser' in scope
583 | }
584 |
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:593:5: error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_extract_aac_frame' in scope
591 | open func extractAacFrame(sample: Data)throws -> Data {
592 | return try FfiConverterData.lift(try rustCallWithError(FfiConverterTypeSegmentParseError.lift) {
593 | uniffi_ermis_call_node_binding_fn_method_segmentparser_extract_aac_frame(self.uniffiClonePointer(),
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_extract_aac_frame' in scope
594 | FfiConverterData.lower(sample),$0
595 | )
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:604:5: error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_extract_video_nalus' in scope
602 | open func extractVideoNalus(sample: Data)throws -> Data {
603 | return try FfiConverterData.lift(try rustCallWithError(FfiConverterTypeSegmentParseError.lift) {
604 | uniffi_ermis_call_node_binding_fn_method_segmentparser_extract_video_nalus(self.uniffiClonePointer(),
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_extract_video_nalus' in scope
605 | FfiConverterData.lower(sample),$0
606 | )
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:615:5: error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_is_keyframe_sample' in scope
613 | open func isKeyframeSample(sample: Data) -> Bool {
614 | return try! FfiConverterBool.lift(try! rustCall() {
615 | uniffi_ermis_call_node_binding_fn_method_segmentparser_is_keyframe_sample(self.uniffiClonePointer(),
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_is_keyframe_sample' in scope
616 | FfiConverterData.lower(sample),$0
617 | )
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:626:5: error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_is_video_sample' in scope
624 | open func isVideoSample(sample: Data) -> Bool {
625 | return try! FfiConverterBool.lift(try! rustCall() {
626 | uniffi_ermis_call_node_binding_fn_method_segmentparser_is_video_sample(self.uniffiClonePointer(),
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_is_video_sample' in scope
627 | FfiConverterData.lower(sample),$0
628 | )
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.swift:637:5: error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_parse_segment' in scope
635 | open func parseSegment(payload: Data)throws -> ParsedSegment {
636 | return try FfiConverterTypeParsedSegment.lift(try rustCallWithError(FfiConverterTypeSegmentParseError.lift) {
637 | uniffi_ermis_call_node_binding_fn_method_segmentparser_parse_segment(self.uniffiClonePointer(),
| `- error: cannot find 'uniffi_ermis_call_node_binding_fn_method_segmentparser_parse_segment' in scope
638 | FfiConverterData.lower(payload),$0
639 | )
/host/spi-builder-workspace/Sources/ErmisFmp4Parser/ErmisFmp4Parser.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/ErmisFmp4Parser/ErmisFmp4Parser.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_ermis_call_node_binding_rustbuffer_from_bytes(ForeignBytes(bufferPointer: ptr), $0) }
29 | }
BUILD FAILURE 6.1 wasm