The Swift Package Index logo.Swift Package Index

Build Information

Failed to build sudachi-swift, reference v0.3.0 (c01a0d), with Swift 6.3 for Wasm on 30 Sep 2026 23:17:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/iasnezhkov/sudachi-swift.git
Reference: v0.3.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/iasnezhkov/sudachi-swift
 * tag               v0.3.0     -> FETCH_HEAD
HEAD is now at c01a0dc Release v0.3.0
Cloned https://github.com/iasnezhkov/sudachi-swift.git
Revision (git rev-parse @):
c01a0dca4f588ed56636ff190ebc43c31b94ada3
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/iasnezhkov/sudachi-swift.git at v0.3.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/iasnezhkov/sudachi-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:253aad7f5b11d25cf9eaef34120b94cd8a325782929c57fb304a7711494a3f9a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Downloading binary artifact https://github.com/iasnezhkov/sudachi-swift/releases/download/v0.3.0/Sudachi.xcframework.zip
[16375/11004593] Downloading https://github.com/iasnezhkov/sudachi-swift/releases/download/v0.3.0/Sudachi.xcframework.zip
Downloaded https://github.com/iasnezhkov/sudachi-swift/releases/download/v0.3.0/Sudachi.xcframework.zip (1.12s)
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/5] Compiling Sudachi Sudachi+Extensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Compiling Sudachi Sudachi.swift
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:14:23: error: cannot find type 'RustBuffer' in scope
  12 | #endif
  13 |
  14 | fileprivate extension RustBuffer {
     |                       `- error: cannot find type 'RustBuffer' in scope
  15 |     // Allocate a new buffer, copying the contents of a `UInt8` array.
  16 |     init(bytes: [UInt8]) {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:38:23: error: cannot find type 'ForeignBytes' in scope
  36 | }
  37 |
  38 | fileprivate extension ForeignBytes {
     |                       `- error: cannot find type 'ForeignBytes' in scope
  39 |     init(bufferPointer: UnsafeBufferPointer<UInt8>) {
  40 |         self.init(len: Int32(bufferPointer.count), data: bufferPointer.baseAddress)
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:52:22: error: cannot find type 'RustBuffer' in scope
  50 |
  51 | fileprivate extension Data {
  52 |     init(rustBuffer: RustBuffer) {
     |                      `- error: cannot find type 'RustBuffer' in scope
  53 |         self.init(
  54 |             bytesNoCopy: rustBuffer.data!,
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:190:76: error: cannot find type 'RustBuffer' in scope
 188 | // Types conforming to `FfiConverterRustBuffer` lift and lower into a `RustBuffer`.
 189 | // Used for complex types where it's hard to write a custom lift/lower.
 190 | fileprivate protocol FfiConverterRustBuffer: FfiConverter where FfiType == RustBuffer {}
     |                                                                            `- error: cannot find type 'RustBuffer' in scope
 191 |
 192 | extension FfiConverterRustBuffer {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:196:36: error: cannot find type 'RustBuffer' in scope
 194 |     @_documentation(visibility: private)
 195 | #endif
 196 |     public static func lift(_ buf: RustBuffer) throws -> SwiftType {
     |                                    `- error: cannot find type 'RustBuffer' in scope
 197 |         var reader = createReader(data: Data(rustBuffer: buf))
 198 |         let value = try read(from: &reader)
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:209:53: error: cannot find type 'RustBuffer' in scope
 207 |     @_documentation(visibility: private)
 208 | #endif
 209 |     public static func lower(_ value: SwiftType) -> RustBuffer {
     |                                                     `- error: cannot find type 'RustBuffer' in scope
 210 |           var writer = createWriter()
 211 |           write(value, into: &writer)
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:256:23: error: cannot find type 'RustCallStatus' in scope
 254 | fileprivate let CALL_CANCELLED: Int8 = 3
 255 |
 256 | fileprivate extension RustCallStatus {
     |                       `- error: cannot find type 'RustCallStatus' in scope
 257 |     init() {
 258 |         self.init(
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:269:60: error: cannot find type 'RustCallStatus' in scope
 267 | }
 268 |
 269 | private func rustCall<T>(_ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
     |                                                            `- error: cannot find type 'RustCallStatus' in scope
 270 |     let neverThrow: ((RustBuffer) throws -> Never)? = nil
 271 |     return try makeRustCall(callback, errorHandler: neverThrow)
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:275:32: error: cannot find type 'RustBuffer' in scope
 273 |
 274 | private func rustCallWithError<T, E: Swift.Error>(
 275 |     _ errorHandler: @escaping (RustBuffer) throws -> E,
     |                                `- error: cannot find type 'RustBuffer' in scope
 276 |     _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
 277 |     try makeRustCall(callback, errorHandler: errorHandler)
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:276:39: error: cannot find type 'RustCallStatus' in scope
 274 | private func rustCallWithError<T, E: Swift.Error>(
 275 |     _ errorHandler: @escaping (RustBuffer) throws -> E,
 276 |     _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
     |                                       `- error: cannot find type 'RustCallStatus' in scope
 277 |     try makeRustCall(callback, errorHandler: errorHandler)
 278 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:281:39: error: cannot find type 'RustCallStatus' in scope
 279 |
 280 | private func makeRustCall<T, E: Swift.Error>(
 281 |     _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T,
     |                                       `- error: cannot find type 'RustCallStatus' in scope
 282 |     errorHandler: ((RustBuffer) throws -> E)?
 283 | ) throws -> T {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.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 |     uniffiEnsureSudachiSwiftInitialized()
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:292:17: error: cannot find type 'RustCallStatus' in scope
 290 |
 291 | private func uniffiCheckCallStatus<E: Swift.Error>(
 292 |     callStatus: RustCallStatus,
     |                 `- error: cannot find type 'RustCallStatus' in scope
 293 |     errorHandler: ((RustBuffer) throws -> E)?
 294 | ) throws {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:293:21: error: cannot find type 'RustBuffer' in scope
 291 | private func uniffiCheckCallStatus<E: Swift.Error>(
 292 |     callStatus: RustCallStatus,
 293 |     errorHandler: ((RustBuffer) throws -> E)?
     |                     `- error: cannot find type 'RustBuffer' in scope
 294 | ) throws {
 295 |     switch callStatus.code {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:327:38: error: cannot find type 'RustCallStatus' in scope
 325 |
 326 | private func uniffiTraitInterfaceCall<T>(
 327 |     callStatus: UnsafeMutablePointer<RustCallStatus>,
     |                                      `- error: cannot find type 'RustCallStatus' in scope
 328 |     makeCall: () throws -> T,
 329 |     writeReturn: (T) -> ()
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:340:38: error: cannot find type 'RustCallStatus' in scope
 338 |
 339 | private func uniffiTraitInterfaceCallWithError<T, E>(
 340 |     callStatus: UnsafeMutablePointer<RustCallStatus>,
     |                                      `- error: cannot find type 'RustCallStatus' in scope
 341 |     makeCall: () throws -> T,
 342 |     writeReturn: (T) -> (),
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:343:24: error: cannot find type 'RustBuffer' in scope
 341 |     makeCall: () throws -> T,
 342 |     writeReturn: (T) -> (),
 343 |     lowerError: (E) -> RustBuffer
     |                        `- error: cannot find type 'RustBuffer' in scope
 344 | ) {
 345 |     do {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:496:25: error: cannot find type 'RustBuffer' in scope
 494 | fileprivate struct FfiConverterString: FfiConverter {
 495 |     typealias SwiftType = String
 496 |     typealias FfiType = RustBuffer
     |                         `- error: cannot find type 'RustBuffer' in scope
 497 |
 498 |     public static func lift(_ value: RustBuffer) throws -> String {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:498:38: error: cannot find type 'RustBuffer' in scope
 496 |     typealias FfiType = RustBuffer
 497 |
 498 |     public static func lift(_ value: RustBuffer) throws -> String {
     |                                      `- error: cannot find type 'RustBuffer' in scope
 499 |         defer {
 500 |             value.deallocate()
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:509:50: error: cannot find type 'RustBuffer' in scope
 507 |     }
 508 |
 509 |     public static func lower(_ value: String) -> RustBuffer {
     |                                                  `- error: cannot find type 'RustBuffer' in scope
 510 |         return value.utf8CString.withUnsafeBufferPointer { ptr in
 511 |             // The swift string gives us int8_t, we want uint8_t.
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:494: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 |
     :
 492 | @_documentation(visibility: private)
 493 | #endif
 494 | fileprivate struct FfiConverterString: FfiConverter {
     |                    |- error: type 'FfiConverterString' does not conform to protocol 'FfiConverter'
     |                    `- note: add stubs for conformance
 495 |     typealias SwiftType = String
 496 |     typealias FfiType = RustBuffer
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1040:15: error: type 'FfiConverterTypeMorpheme' 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
     :
1038 | @_documentation(visibility: private)
1039 | #endif
1040 | public struct FfiConverterTypeMorpheme: FfiConverterRustBuffer {
     |               |- error: type 'FfiConverterTypeMorpheme' does not conform to protocol 'FfiConverter'
     |               `- note: add stubs for conformance
1041 |     public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> Morpheme {
1042 |         return
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1075:50: error: cannot find type 'RustBuffer' in scope
1073 | @_documentation(visibility: private)
1074 | #endif
1075 | public func FfiConverterTypeMorpheme_lift(_ buf: RustBuffer) throws -> Morpheme {
     |                                                  `- error: cannot find type 'RustBuffer' in scope
1076 |     return try FfiConverterTypeMorpheme.lift(buf)
1077 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1082:66: error: cannot find type 'RustBuffer' in scope
1080 | @_documentation(visibility: private)
1081 | #endif
1082 | public func FfiConverterTypeMorpheme_lower(_ value: Morpheme) -> RustBuffer {
     |                                                                  `- error: cannot find type 'RustBuffer' in scope
1083 |     return FfiConverterTypeMorpheme.lower(value)
1084 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1151:15: error: type 'FfiConverterTypeMorphemeLite' 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
     :
1149 | @_documentation(visibility: private)
1150 | #endif
1151 | public struct FfiConverterTypeMorphemeLite: FfiConverterRustBuffer {
     |               |- error: type 'FfiConverterTypeMorphemeLite' does not conform to protocol 'FfiConverter'
     |               `- note: add stubs for conformance
1152 |     public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> MorphemeLite {
1153 |         return
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1176:54: error: cannot find type 'RustBuffer' in scope
1174 | @_documentation(visibility: private)
1175 | #endif
1176 | public func FfiConverterTypeMorphemeLite_lift(_ buf: RustBuffer) throws -> MorphemeLite {
     |                                                      `- error: cannot find type 'RustBuffer' in scope
1177 |     return try FfiConverterTypeMorphemeLite.lift(buf)
1178 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1183:74: error: cannot find type 'RustBuffer' in scope
1181 | @_documentation(visibility: private)
1182 | #endif
1183 | public func FfiConverterTypeMorphemeLite_lower(_ value: MorphemeLite) -> RustBuffer {
     |                                                                          `- error: cannot find type 'RustBuffer' in scope
1184 |     return FfiConverterTypeMorphemeLite.lower(value)
1185 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1225:15: error: type 'FfiConverterTypeSplitMode' 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 |
     :
1223 | @_documentation(visibility: private)
1224 | #endif
1225 | public struct FfiConverterTypeSplitMode: FfiConverterRustBuffer {
     |               |- error: type 'FfiConverterTypeSplitMode' does not conform to protocol 'FfiConverter'
     |               `- note: add stubs for conformance
1226 |     typealias SwiftType = SplitMode
1227 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1265:51: error: cannot find type 'RustBuffer' in scope
1263 | @_documentation(visibility: private)
1264 | #endif
1265 | public func FfiConverterTypeSplitMode_lift(_ buf: RustBuffer) throws -> SplitMode {
     |                                                   `- error: cannot find type 'RustBuffer' in scope
1266 |     return try FfiConverterTypeSplitMode.lift(buf)
1267 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1272:68: error: cannot find type 'RustBuffer' in scope
1270 | @_documentation(visibility: private)
1271 | #endif
1272 | public func FfiConverterTypeSplitMode_lower(_ value: SplitMode) -> RustBuffer {
     |                                                                    `- error: cannot find type 'RustBuffer' in scope
1273 |     return FfiConverterTypeSplitMode.lower(value)
1274 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1327:15: error: type 'FfiConverterTypeSudachiError' 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 |
     :
1325 | @_documentation(visibility: private)
1326 | #endif
1327 | public struct FfiConverterTypeSudachiError: FfiConverterRustBuffer {
     |               |- error: type 'FfiConverterTypeSudachiError' does not conform to protocol 'FfiConverter'
     |               `- note: add stubs for conformance
1328 |     typealias SwiftType = SudachiError
1329 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1382:54: error: cannot find type 'RustBuffer' in scope
1380 | @_documentation(visibility: private)
1381 | #endif
1382 | public func FfiConverterTypeSudachiError_lift(_ buf: RustBuffer) throws -> SudachiError {
     |                                                      `- error: cannot find type 'RustBuffer' in scope
1383 |     return try FfiConverterTypeSudachiError.lift(buf)
1384 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1389:74: error: cannot find type 'RustBuffer' in scope
1387 | @_documentation(visibility: private)
1388 | #endif
1389 | public func FfiConverterTypeSudachiError_lower(_ value: SudachiError) -> RustBuffer {
     |                                                                          `- error: cannot find type 'RustBuffer' in scope
1390 |     return FfiConverterTypeSudachiError.lower(value)
1391 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1396:20: error: type 'FfiConverterSequenceInt32' 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 |
     :
1394 | @_documentation(visibility: private)
1395 | #endif
1396 | fileprivate struct FfiConverterSequenceInt32: FfiConverterRustBuffer {
     |                    |- error: type 'FfiConverterSequenceInt32' does not conform to protocol 'FfiConverter'
     |                    `- note: add stubs for conformance
1397 |     typealias SwiftType = [Int32]
1398 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1421:20: error: type 'FfiConverterSequenceString' 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 |
     :
1419 | @_documentation(visibility: private)
1420 | #endif
1421 | fileprivate struct FfiConverterSequenceString: FfiConverterRustBuffer {
     |                    |- error: type 'FfiConverterSequenceString' does not conform to protocol 'FfiConverter'
     |                    `- note: add stubs for conformance
1422 |     typealias SwiftType = [String]
1423 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1446:20: error: type 'FfiConverterSequenceTypeMorpheme' 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 |
     :
1444 | @_documentation(visibility: private)
1445 | #endif
1446 | fileprivate struct FfiConverterSequenceTypeMorpheme: FfiConverterRustBuffer {
     |                    |- error: type 'FfiConverterSequenceTypeMorpheme' does not conform to protocol 'FfiConverter'
     |                    `- note: add stubs for conformance
1447 |     typealias SwiftType = [Morpheme]
1448 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1471:20: error: type 'FfiConverterSequenceTypeMorphemeLite' 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 |
     :
1469 | @_documentation(visibility: private)
1470 | #endif
1471 | fileprivate struct FfiConverterSequenceTypeMorphemeLite: FfiConverterRustBuffer {
     |                    |- error: type 'FfiConverterSequenceTypeMorphemeLite' does not conform to protocol 'FfiConverter'
     |                    `- note: add stubs for conformance
1472 |     typealias SwiftType = [MorphemeLite]
1473 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1496:20: error: type 'FfiConverterSequenceSequenceTypeMorphemeLite' 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 |
     :
1494 | @_documentation(visibility: private)
1495 | #endif
1496 | fileprivate struct FfiConverterSequenceSequenceTypeMorphemeLite: FfiConverterRustBuffer {
     |                    |- error: type 'FfiConverterSequenceSequenceTypeMorphemeLite' does not conform to protocol 'FfiConverter'
     |                    `- note: add stubs for conformance
1497 |     typealias SwiftType = [[MorphemeLite]]
1498 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1541:40: error: cannot find 'ffi_sudachi_swift_uniffi_contract_version' in scope
1539 |     let bindings_contract_version = 30
1540 |     // Get the scaffolding contract version by calling the into the dylib
1541 |     let scaffolding_contract_version = ffi_sudachi_swift_uniffi_contract_version()
     |                                        `- error: cannot find 'ffi_sudachi_swift_uniffi_contract_version' in scope
1542 |     if bindings_contract_version != scaffolding_contract_version {
1543 |         return InitializationResult.contractVersionMismatch
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1545:9: error: cannot find 'uniffi_sudachi_swift_checksum_func_katakana_to_hiragana' in scope
1543 |         return InitializationResult.contractVersionMismatch
1544 |     }
1545 |     if (uniffi_sudachi_swift_checksum_func_katakana_to_hiragana() != 51498) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_func_katakana_to_hiragana' in scope
1546 |         return InitializationResult.apiChecksumMismatch
1547 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1548:9: error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize' in scope
1546 |         return InitializationResult.apiChecksumMismatch
1547 |     }
1548 |     if (uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize() != 50583) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize' in scope
1549 |         return InitializationResult.apiChecksumMismatch
1550 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1551:9: error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_lite' in scope
1549 |         return InitializationResult.apiChecksumMismatch
1550 |     }
1551 |     if (uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_lite() != 25636) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_lite' in scope
1552 |         return InitializationResult.apiChecksumMismatch
1553 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1554:9: error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_lite_with_mode' in scope
1552 |         return InitializationResult.apiChecksumMismatch
1553 |     }
1554 |     if (uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_lite_with_mode() != 25613) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_lite_with_mode' in scope
1555 |         return InitializationResult.apiChecksumMismatch
1556 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1557:9: error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_many' in scope
1555 |         return InitializationResult.apiChecksumMismatch
1556 |     }
1557 |     if (uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_many() != 65364) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_many' in scope
1558 |         return InitializationResult.apiChecksumMismatch
1559 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1560:9: error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_many_with_mode' in scope
1558 |         return InitializationResult.apiChecksumMismatch
1559 |     }
1560 |     if (uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_many_with_mode() != 51213) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_many_with_mode' in scope
1561 |         return InitializationResult.apiChecksumMismatch
1562 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1563:9: error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_with_mode' in scope
1561 |         return InitializationResult.apiChecksumMismatch
1562 |     }
1563 |     if (uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_with_mode() != 12849) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_with_mode' in scope
1564 |         return InitializationResult.apiChecksumMismatch
1565 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1566:9: error: cannot find 'uniffi_sudachi_swift_checksum_constructor_sudachidictionary_new' in scope
1564 |         return InitializationResult.apiChecksumMismatch
1565 |     }
1566 |     if (uniffi_sudachi_swift_checksum_constructor_sudachidictionary_new() != 33628) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_constructor_sudachidictionary_new' in scope
1567 |         return InitializationResult.apiChecksumMismatch
1568 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1569:9: error: cannot find 'uniffi_sudachi_swift_checksum_constructor_sudachitokenizer_new' in scope
1567 |         return InitializationResult.apiChecksumMismatch
1568 |     }
1569 |     if (uniffi_sudachi_swift_checksum_constructor_sudachitokenizer_new() != 33275) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_constructor_sudachitokenizer_new' in scope
1570 |         return InitializationResult.apiChecksumMismatch
1571 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:197:41: error: no exact matches in call to initializer
 195 | #endif
 196 |     public static func lift(_ buf: RustBuffer) throws -> SwiftType {
 197 |         var reader = createReader(data: Data(rustBuffer: buf))
     |                                         `- error: no exact matches in call to initializer
 198 |         let value = try read(from: &reader)
 199 |         if hasRemaining(reader) {
FoundationEssentials.Data.init:2:19: note: incorrect labels for candidate (have: '(rustBuffer:)', expected: '(_:)')
1 | struct Data {
2 | @inlinable public init<S>(_ elements: S) where S : Sequence, S.Element == UInt8}
  |                   `- note: incorrect labels for candidate (have: '(rustBuffer:)', expected: '(_:)')
3 |
Swift.RangeReplaceableCollection.init:2:19: note: incorrect labels for candidate (have: '(rustBuffer:)', expected: '(_:)')
1 | protocol RangeReplaceableCollection {
2 | @inlinable public init<S>(_ elements: S) where S : Sequence, Self.Element == S.Element}
  |                   `- note: incorrect labels for candidate (have: '(rustBuffer:)', expected: '(_:)')
3 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:212:18: error: cannot find 'RustBuffer' in scope
 210 |           var writer = createWriter()
 211 |           write(value, into: &writer)
 212 |           return RustBuffer(bytes: writer)
     |                  `- error: cannot find 'RustBuffer' in scope
 213 |     }
 214 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:270:23: error: cannot find type 'RustBuffer' in scope
 268 |
 269 | private func rustCall<T>(_ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
 270 |     let neverThrow: ((RustBuffer) throws -> Never)? = nil
     |                       `- error: cannot find type 'RustBuffer' in scope
 271 |     return try makeRustCall(callback, errorHandler: neverThrow)
 272 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:285:22: error: cannot find 'RustCallStatus' in scope
 283 | ) throws -> T {
 284 |     uniffiEnsureSudachiSwiftInitialized()
 285 |     var callStatus = RustCallStatus.init()
     |                      `- error: cannot find 'RustCallStatus' in scope
 286 |     let returnedVal = callback(&callStatus)
 287 |     try uniffiCheckCallStatus(callStatus: callStatus, errorHandler: errorHandler)
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:515:24: error: cannot find 'RustBuffer' in scope
 513 |                 // The swift string gives us a trailing null byte, we don't want it.
 514 |                 let buf = UnsafeBufferPointer(rebasing: ptr.prefix(upTo: ptr.count - 1))
 515 |                 return RustBuffer.from(buf)
     |                        `- error: cannot find 'RustBuffer' in scope
 516 |             }
 517 |         }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:591:32: error: cannot find 'uniffi_sudachi_swift_fn_clone_sudachidictionary' in scope
 589 | #endif
 590 |     public func uniffiCloneHandle() -> UInt64 {
 591 |         return try! rustCall { uniffi_sudachi_swift_fn_clone_sudachidictionary(self.handle, $0) }
     |                                `- error: cannot find 'uniffi_sudachi_swift_fn_clone_sudachidictionary' in scope
 592 |     }
 593 |     /**
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:604:5: error: cannot find 'uniffi_sudachi_swift_fn_constructor_sudachidictionary_new' in scope
 602 |     let handle =
 603 |         try rustCallWithError(FfiConverterTypeSudachiError_lift) {
 604 |     uniffi_sudachi_swift_fn_constructor_sudachidictionary_new(
     |     `- error: cannot find 'uniffi_sudachi_swift_fn_constructor_sudachidictionary_new' in scope
 605 |         FfiConverterString.lower(systemDictPath),
 606 |         FfiConverterSequenceString.lower(userDictPaths),
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:619:25: error: cannot find 'uniffi_sudachi_swift_fn_free_sudachidictionary' in scope
 617 |         }
 618 |
 619 |         try! rustCall { uniffi_sudachi_swift_fn_free_sudachidictionary(handle, $0) }
     |                         `- error: cannot find 'uniffi_sudachi_swift_fn_free_sudachidictionary' in scope
 620 |     }
 621 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:770:32: error: cannot find 'uniffi_sudachi_swift_fn_clone_sudachitokenizer' in scope
 768 | #endif
 769 |     public func uniffiCloneHandle() -> UInt64 {
 770 |         return try! rustCall { uniffi_sudachi_swift_fn_clone_sudachitokenizer(self.handle, $0) }
     |                                `- error: cannot find 'uniffi_sudachi_swift_fn_clone_sudachitokenizer' in scope
 771 |     }
 772 |     /**
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:778:5: error: cannot find 'uniffi_sudachi_swift_fn_constructor_sudachitokenizer_new' in scope
 776 |     let handle =
 777 |         try rustCallWithError(FfiConverterTypeSudachiError_lift) {
 778 |     uniffi_sudachi_swift_fn_constructor_sudachitokenizer_new(
     |     `- error: cannot find 'uniffi_sudachi_swift_fn_constructor_sudachitokenizer_new' in scope
 779 |         FfiConverterTypeSudachiDictionary_lower(dictionary),
 780 |         FfiConverterTypeSplitMode_lower(mode),$0
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:792:25: error: cannot find 'uniffi_sudachi_swift_fn_free_sudachitokenizer' in scope
 790 |         }
 791 |
 792 |         try! rustCall { uniffi_sudachi_swift_fn_free_sudachitokenizer(handle, $0) }
     |                         `- error: cannot find 'uniffi_sudachi_swift_fn_free_sudachitokenizer' in scope
 793 |     }
 794 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:803:5: error: cannot find 'uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize' in scope
 801 | open func tokenize(text: String)throws  -> [Morpheme]  {
 802 |     return try  FfiConverterSequenceTypeMorpheme.lift(try rustCallWithError(FfiConverterTypeSudachiError_lift) {
 803 |     uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize(
     |     `- error: cannot find 'uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize' in scope
 804 |             self.uniffiCloneHandle(),
 805 |         FfiConverterString.lower(text),$0
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:820:5: error: cannot find 'uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_lite' in scope
 818 | open func tokenizeLite(text: String)throws  -> [MorphemeLite]  {
 819 |     return try  FfiConverterSequenceTypeMorphemeLite.lift(try rustCallWithError(FfiConverterTypeSudachiError_lift) {
 820 |     uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_lite(
     |     `- error: cannot find 'uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_lite' in scope
 821 |             self.uniffiCloneHandle(),
 822 |         FfiConverterString.lower(text),$0
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:832:5: error: cannot find 'uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_lite_with_mode' in scope
 830 | open func tokenizeLiteWithMode(text: String, mode: SplitMode)throws  -> [MorphemeLite]  {
 831 |     return try  FfiConverterSequenceTypeMorphemeLite.lift(try rustCallWithError(FfiConverterTypeSudachiError_lift) {
 832 |     uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_lite_with_mode(
     |     `- error: cannot find 'uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_lite_with_mode' in scope
 833 |             self.uniffiCloneHandle(),
 834 |         FfiConverterString.lower(text),
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:849:5: error: cannot find 'uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_many' in scope
 847 | open func tokenizeMany(texts: [String])throws  -> [[MorphemeLite]]  {
 848 |     return try  FfiConverterSequenceSequenceTypeMorphemeLite.lift(try rustCallWithError(FfiConverterTypeSudachiError_lift) {
 849 |     uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_many(
     |     `- error: cannot find 'uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_many' in scope
 850 |             self.uniffiCloneHandle(),
 851 |         FfiConverterSequenceString.lower(texts),$0
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:861:5: error: cannot find 'uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_many_with_mode' in scope
 859 | open func tokenizeManyWithMode(texts: [String], mode: SplitMode)throws  -> [[MorphemeLite]]  {
 860 |     return try  FfiConverterSequenceSequenceTypeMorphemeLite.lift(try rustCallWithError(FfiConverterTypeSudachiError_lift) {
 861 |     uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_many_with_mode(
     |     `- error: cannot find 'uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_many_with_mode' in scope
 862 |             self.uniffiCloneHandle(),
 863 |         FfiConverterSequenceString.lower(texts),
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:876:5: error: cannot find 'uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_with_mode' in scope
 874 | open func tokenizeWithMode(text: String, mode: SplitMode)throws  -> [Morpheme]  {
 875 |     return try  FfiConverterSequenceTypeMorpheme.lift(try rustCallWithError(FfiConverterTypeSudachiError_lift) {
 876 |     uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_with_mode(
     |     `- error: cannot find 'uniffi_sudachi_swift_fn_method_sudachitokenizer_tokenize_with_mode' in scope
 877 |             self.uniffiCloneHandle(),
 878 |         FfiConverterString.lower(text),
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1524:5: error: cannot find 'uniffi_sudachi_swift_fn_func_katakana_to_hiragana' in scope
1522 | public func katakanaToHiragana(s: String) -> String  {
1523 |     return try!  FfiConverterString.lift(try! rustCall() {
1524 |     uniffi_sudachi_swift_fn_func_katakana_to_hiragana(
     |     `- error: cannot find 'uniffi_sudachi_swift_fn_func_katakana_to_hiragana' in scope
1525 |         FfiConverterString.lower(s),$0
1526 |     )
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:23:28: error: cannot find type 'RustBuffer' in scope
  21 |     }
  22 |
  23 |     static func empty() -> RustBuffer {
     |                            `- error: cannot find type 'RustBuffer' in scope
  24 |         RustBuffer(capacity: 0, len:0, data: nil)
  25 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.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_sudachi_swift_rustbuffer_from_bytes(ForeignBytes(bufferPointer: ptr), $0) }
  29 |     }
[5/5] Emitting module Sudachi
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:14:23: error: cannot find type 'RustBuffer' in scope
  12 | #endif
  13 |
  14 | fileprivate extension RustBuffer {
     |                       `- error: cannot find type 'RustBuffer' in scope
  15 |     // Allocate a new buffer, copying the contents of a `UInt8` array.
  16 |     init(bytes: [UInt8]) {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:38:23: error: cannot find type 'ForeignBytes' in scope
  36 | }
  37 |
  38 | fileprivate extension ForeignBytes {
     |                       `- error: cannot find type 'ForeignBytes' in scope
  39 |     init(bufferPointer: UnsafeBufferPointer<UInt8>) {
  40 |         self.init(len: Int32(bufferPointer.count), data: bufferPointer.baseAddress)
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:52:22: error: cannot find type 'RustBuffer' in scope
  50 |
  51 | fileprivate extension Data {
  52 |     init(rustBuffer: RustBuffer) {
     |                      `- error: cannot find type 'RustBuffer' in scope
  53 |         self.init(
  54 |             bytesNoCopy: rustBuffer.data!,
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:190:76: error: cannot find type 'RustBuffer' in scope
 188 | // Types conforming to `FfiConverterRustBuffer` lift and lower into a `RustBuffer`.
 189 | // Used for complex types where it's hard to write a custom lift/lower.
 190 | fileprivate protocol FfiConverterRustBuffer: FfiConverter where FfiType == RustBuffer {}
     |                                                                            `- error: cannot find type 'RustBuffer' in scope
 191 |
 192 | extension FfiConverterRustBuffer {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:196:36: error: cannot find type 'RustBuffer' in scope
 194 |     @_documentation(visibility: private)
 195 | #endif
 196 |     public static func lift(_ buf: RustBuffer) throws -> SwiftType {
     |                                    `- error: cannot find type 'RustBuffer' in scope
 197 |         var reader = createReader(data: Data(rustBuffer: buf))
 198 |         let value = try read(from: &reader)
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:209:53: error: cannot find type 'RustBuffer' in scope
 207 |     @_documentation(visibility: private)
 208 | #endif
 209 |     public static func lower(_ value: SwiftType) -> RustBuffer {
     |                                                     `- error: cannot find type 'RustBuffer' in scope
 210 |           var writer = createWriter()
 211 |           write(value, into: &writer)
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:256:23: error: cannot find type 'RustCallStatus' in scope
 254 | fileprivate let CALL_CANCELLED: Int8 = 3
 255 |
 256 | fileprivate extension RustCallStatus {
     |                       `- error: cannot find type 'RustCallStatus' in scope
 257 |     init() {
 258 |         self.init(
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:269:60: error: cannot find type 'RustCallStatus' in scope
 267 | }
 268 |
 269 | private func rustCall<T>(_ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
     |                                                            `- error: cannot find type 'RustCallStatus' in scope
 270 |     let neverThrow: ((RustBuffer) throws -> Never)? = nil
 271 |     return try makeRustCall(callback, errorHandler: neverThrow)
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:275:32: error: cannot find type 'RustBuffer' in scope
 273 |
 274 | private func rustCallWithError<T, E: Swift.Error>(
 275 |     _ errorHandler: @escaping (RustBuffer) throws -> E,
     |                                `- error: cannot find type 'RustBuffer' in scope
 276 |     _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
 277 |     try makeRustCall(callback, errorHandler: errorHandler)
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:276:39: error: cannot find type 'RustCallStatus' in scope
 274 | private func rustCallWithError<T, E: Swift.Error>(
 275 |     _ errorHandler: @escaping (RustBuffer) throws -> E,
 276 |     _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T) throws -> T {
     |                                       `- error: cannot find type 'RustCallStatus' in scope
 277 |     try makeRustCall(callback, errorHandler: errorHandler)
 278 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:281:39: error: cannot find type 'RustCallStatus' in scope
 279 |
 280 | private func makeRustCall<T, E: Swift.Error>(
 281 |     _ callback: (UnsafeMutablePointer<RustCallStatus>) -> T,
     |                                       `- error: cannot find type 'RustCallStatus' in scope
 282 |     errorHandler: ((RustBuffer) throws -> E)?
 283 | ) throws -> T {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.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 |     uniffiEnsureSudachiSwiftInitialized()
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:292:17: error: cannot find type 'RustCallStatus' in scope
 290 |
 291 | private func uniffiCheckCallStatus<E: Swift.Error>(
 292 |     callStatus: RustCallStatus,
     |                 `- error: cannot find type 'RustCallStatus' in scope
 293 |     errorHandler: ((RustBuffer) throws -> E)?
 294 | ) throws {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:293:21: error: cannot find type 'RustBuffer' in scope
 291 | private func uniffiCheckCallStatus<E: Swift.Error>(
 292 |     callStatus: RustCallStatus,
 293 |     errorHandler: ((RustBuffer) throws -> E)?
     |                     `- error: cannot find type 'RustBuffer' in scope
 294 | ) throws {
 295 |     switch callStatus.code {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:327:38: error: cannot find type 'RustCallStatus' in scope
 325 |
 326 | private func uniffiTraitInterfaceCall<T>(
 327 |     callStatus: UnsafeMutablePointer<RustCallStatus>,
     |                                      `- error: cannot find type 'RustCallStatus' in scope
 328 |     makeCall: () throws -> T,
 329 |     writeReturn: (T) -> ()
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:340:38: error: cannot find type 'RustCallStatus' in scope
 338 |
 339 | private func uniffiTraitInterfaceCallWithError<T, E>(
 340 |     callStatus: UnsafeMutablePointer<RustCallStatus>,
     |                                      `- error: cannot find type 'RustCallStatus' in scope
 341 |     makeCall: () throws -> T,
 342 |     writeReturn: (T) -> (),
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:343:24: error: cannot find type 'RustBuffer' in scope
 341 |     makeCall: () throws -> T,
 342 |     writeReturn: (T) -> (),
 343 |     lowerError: (E) -> RustBuffer
     |                        `- error: cannot find type 'RustBuffer' in scope
 344 | ) {
 345 |     do {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:496:25: error: cannot find type 'RustBuffer' in scope
 494 | fileprivate struct FfiConverterString: FfiConverter {
 495 |     typealias SwiftType = String
 496 |     typealias FfiType = RustBuffer
     |                         `- error: cannot find type 'RustBuffer' in scope
 497 |
 498 |     public static func lift(_ value: RustBuffer) throws -> String {
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:498:38: error: cannot find type 'RustBuffer' in scope
 496 |     typealias FfiType = RustBuffer
 497 |
 498 |     public static func lift(_ value: RustBuffer) throws -> String {
     |                                      `- error: cannot find type 'RustBuffer' in scope
 499 |         defer {
 500 |             value.deallocate()
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:509:50: error: cannot find type 'RustBuffer' in scope
 507 |     }
 508 |
 509 |     public static func lower(_ value: String) -> RustBuffer {
     |                                                  `- error: cannot find type 'RustBuffer' in scope
 510 |         return value.utf8CString.withUnsafeBufferPointer { ptr in
 511 |             // The swift string gives us int8_t, we want uint8_t.
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:494: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 |
     :
 492 | @_documentation(visibility: private)
 493 | #endif
 494 | fileprivate struct FfiConverterString: FfiConverter {
     |                    |- error: type 'FfiConverterString' does not conform to protocol 'FfiConverter'
     |                    `- note: add stubs for conformance
 495 |     typealias SwiftType = String
 496 |     typealias FfiType = RustBuffer
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1040:15: error: type 'FfiConverterTypeMorpheme' 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
     :
1038 | @_documentation(visibility: private)
1039 | #endif
1040 | public struct FfiConverterTypeMorpheme: FfiConverterRustBuffer {
     |               |- error: type 'FfiConverterTypeMorpheme' does not conform to protocol 'FfiConverter'
     |               `- note: add stubs for conformance
1041 |     public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> Morpheme {
1042 |         return
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1075:50: error: cannot find type 'RustBuffer' in scope
1073 | @_documentation(visibility: private)
1074 | #endif
1075 | public func FfiConverterTypeMorpheme_lift(_ buf: RustBuffer) throws -> Morpheme {
     |                                                  `- error: cannot find type 'RustBuffer' in scope
1076 |     return try FfiConverterTypeMorpheme.lift(buf)
1077 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1082:66: error: cannot find type 'RustBuffer' in scope
1080 | @_documentation(visibility: private)
1081 | #endif
1082 | public func FfiConverterTypeMorpheme_lower(_ value: Morpheme) -> RustBuffer {
     |                                                                  `- error: cannot find type 'RustBuffer' in scope
1083 |     return FfiConverterTypeMorpheme.lower(value)
1084 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1151:15: error: type 'FfiConverterTypeMorphemeLite' 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
     :
1149 | @_documentation(visibility: private)
1150 | #endif
1151 | public struct FfiConverterTypeMorphemeLite: FfiConverterRustBuffer {
     |               |- error: type 'FfiConverterTypeMorphemeLite' does not conform to protocol 'FfiConverter'
     |               `- note: add stubs for conformance
1152 |     public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> MorphemeLite {
1153 |         return
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1176:54: error: cannot find type 'RustBuffer' in scope
1174 | @_documentation(visibility: private)
1175 | #endif
1176 | public func FfiConverterTypeMorphemeLite_lift(_ buf: RustBuffer) throws -> MorphemeLite {
     |                                                      `- error: cannot find type 'RustBuffer' in scope
1177 |     return try FfiConverterTypeMorphemeLite.lift(buf)
1178 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1183:74: error: cannot find type 'RustBuffer' in scope
1181 | @_documentation(visibility: private)
1182 | #endif
1183 | public func FfiConverterTypeMorphemeLite_lower(_ value: MorphemeLite) -> RustBuffer {
     |                                                                          `- error: cannot find type 'RustBuffer' in scope
1184 |     return FfiConverterTypeMorphemeLite.lower(value)
1185 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1225:15: error: type 'FfiConverterTypeSplitMode' 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 |
     :
1223 | @_documentation(visibility: private)
1224 | #endif
1225 | public struct FfiConverterTypeSplitMode: FfiConverterRustBuffer {
     |               |- error: type 'FfiConverterTypeSplitMode' does not conform to protocol 'FfiConverter'
     |               `- note: add stubs for conformance
1226 |     typealias SwiftType = SplitMode
1227 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1265:51: error: cannot find type 'RustBuffer' in scope
1263 | @_documentation(visibility: private)
1264 | #endif
1265 | public func FfiConverterTypeSplitMode_lift(_ buf: RustBuffer) throws -> SplitMode {
     |                                                   `- error: cannot find type 'RustBuffer' in scope
1266 |     return try FfiConverterTypeSplitMode.lift(buf)
1267 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1272:68: error: cannot find type 'RustBuffer' in scope
1270 | @_documentation(visibility: private)
1271 | #endif
1272 | public func FfiConverterTypeSplitMode_lower(_ value: SplitMode) -> RustBuffer {
     |                                                                    `- error: cannot find type 'RustBuffer' in scope
1273 |     return FfiConverterTypeSplitMode.lower(value)
1274 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1327:15: error: type 'FfiConverterTypeSudachiError' 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 |
     :
1325 | @_documentation(visibility: private)
1326 | #endif
1327 | public struct FfiConverterTypeSudachiError: FfiConverterRustBuffer {
     |               |- error: type 'FfiConverterTypeSudachiError' does not conform to protocol 'FfiConverter'
     |               `- note: add stubs for conformance
1328 |     typealias SwiftType = SudachiError
1329 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1382:54: error: cannot find type 'RustBuffer' in scope
1380 | @_documentation(visibility: private)
1381 | #endif
1382 | public func FfiConverterTypeSudachiError_lift(_ buf: RustBuffer) throws -> SudachiError {
     |                                                      `- error: cannot find type 'RustBuffer' in scope
1383 |     return try FfiConverterTypeSudachiError.lift(buf)
1384 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1389:74: error: cannot find type 'RustBuffer' in scope
1387 | @_documentation(visibility: private)
1388 | #endif
1389 | public func FfiConverterTypeSudachiError_lower(_ value: SudachiError) -> RustBuffer {
     |                                                                          `- error: cannot find type 'RustBuffer' in scope
1390 |     return FfiConverterTypeSudachiError.lower(value)
1391 | }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1396:20: error: type 'FfiConverterSequenceInt32' 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 |
     :
1394 | @_documentation(visibility: private)
1395 | #endif
1396 | fileprivate struct FfiConverterSequenceInt32: FfiConverterRustBuffer {
     |                    |- error: type 'FfiConverterSequenceInt32' does not conform to protocol 'FfiConverter'
     |                    `- note: add stubs for conformance
1397 |     typealias SwiftType = [Int32]
1398 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1421:20: error: type 'FfiConverterSequenceString' 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 |
     :
1419 | @_documentation(visibility: private)
1420 | #endif
1421 | fileprivate struct FfiConverterSequenceString: FfiConverterRustBuffer {
     |                    |- error: type 'FfiConverterSequenceString' does not conform to protocol 'FfiConverter'
     |                    `- note: add stubs for conformance
1422 |     typealias SwiftType = [String]
1423 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1446:20: error: type 'FfiConverterSequenceTypeMorpheme' 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 |
     :
1444 | @_documentation(visibility: private)
1445 | #endif
1446 | fileprivate struct FfiConverterSequenceTypeMorpheme: FfiConverterRustBuffer {
     |                    |- error: type 'FfiConverterSequenceTypeMorpheme' does not conform to protocol 'FfiConverter'
     |                    `- note: add stubs for conformance
1447 |     typealias SwiftType = [Morpheme]
1448 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1471:20: error: type 'FfiConverterSequenceTypeMorphemeLite' 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 |
     :
1469 | @_documentation(visibility: private)
1470 | #endif
1471 | fileprivate struct FfiConverterSequenceTypeMorphemeLite: FfiConverterRustBuffer {
     |                    |- error: type 'FfiConverterSequenceTypeMorphemeLite' does not conform to protocol 'FfiConverter'
     |                    `- note: add stubs for conformance
1472 |     typealias SwiftType = [MorphemeLite]
1473 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1496:20: error: type 'FfiConverterSequenceSequenceTypeMorphemeLite' 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 |
     :
1494 | @_documentation(visibility: private)
1495 | #endif
1496 | fileprivate struct FfiConverterSequenceSequenceTypeMorphemeLite: FfiConverterRustBuffer {
     |                    |- error: type 'FfiConverterSequenceSequenceTypeMorphemeLite' does not conform to protocol 'FfiConverter'
     |                    `- note: add stubs for conformance
1497 |     typealias SwiftType = [[MorphemeLite]]
1498 |
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1541:40: error: cannot find 'ffi_sudachi_swift_uniffi_contract_version' in scope
1539 |     let bindings_contract_version = 30
1540 |     // Get the scaffolding contract version by calling the into the dylib
1541 |     let scaffolding_contract_version = ffi_sudachi_swift_uniffi_contract_version()
     |                                        `- error: cannot find 'ffi_sudachi_swift_uniffi_contract_version' in scope
1542 |     if bindings_contract_version != scaffolding_contract_version {
1543 |         return InitializationResult.contractVersionMismatch
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1545:9: error: cannot find 'uniffi_sudachi_swift_checksum_func_katakana_to_hiragana' in scope
1543 |         return InitializationResult.contractVersionMismatch
1544 |     }
1545 |     if (uniffi_sudachi_swift_checksum_func_katakana_to_hiragana() != 51498) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_func_katakana_to_hiragana' in scope
1546 |         return InitializationResult.apiChecksumMismatch
1547 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1548:9: error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize' in scope
1546 |         return InitializationResult.apiChecksumMismatch
1547 |     }
1548 |     if (uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize() != 50583) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize' in scope
1549 |         return InitializationResult.apiChecksumMismatch
1550 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1551:9: error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_lite' in scope
1549 |         return InitializationResult.apiChecksumMismatch
1550 |     }
1551 |     if (uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_lite() != 25636) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_lite' in scope
1552 |         return InitializationResult.apiChecksumMismatch
1553 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1554:9: error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_lite_with_mode' in scope
1552 |         return InitializationResult.apiChecksumMismatch
1553 |     }
1554 |     if (uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_lite_with_mode() != 25613) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_lite_with_mode' in scope
1555 |         return InitializationResult.apiChecksumMismatch
1556 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1557:9: error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_many' in scope
1555 |         return InitializationResult.apiChecksumMismatch
1556 |     }
1557 |     if (uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_many() != 65364) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_many' in scope
1558 |         return InitializationResult.apiChecksumMismatch
1559 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1560:9: error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_many_with_mode' in scope
1558 |         return InitializationResult.apiChecksumMismatch
1559 |     }
1560 |     if (uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_many_with_mode() != 51213) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_many_with_mode' in scope
1561 |         return InitializationResult.apiChecksumMismatch
1562 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1563:9: error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_with_mode' in scope
1561 |         return InitializationResult.apiChecksumMismatch
1562 |     }
1563 |     if (uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_with_mode() != 12849) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_method_sudachitokenizer_tokenize_with_mode' in scope
1564 |         return InitializationResult.apiChecksumMismatch
1565 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1566:9: error: cannot find 'uniffi_sudachi_swift_checksum_constructor_sudachidictionary_new' in scope
1564 |         return InitializationResult.apiChecksumMismatch
1565 |     }
1566 |     if (uniffi_sudachi_swift_checksum_constructor_sudachidictionary_new() != 33628) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_constructor_sudachidictionary_new' in scope
1567 |         return InitializationResult.apiChecksumMismatch
1568 |     }
/host/spi-builder-workspace/swift/Sudachi/Sources/Sudachi/Sudachi.swift:1569:9: error: cannot find 'uniffi_sudachi_swift_checksum_constructor_sudachitokenizer_new' in scope
1567 |         return InitializationResult.apiChecksumMismatch
1568 |     }
1569 |     if (uniffi_sudachi_swift_checksum_constructor_sudachitokenizer_new() != 33275) {
     |         `- error: cannot find 'uniffi_sudachi_swift_checksum_constructor_sudachitokenizer_new' in scope
1570 |         return InitializationResult.apiChecksumMismatch
1571 |     }
BUILD FAILURE 6.3 wasm