Files
fil/docs/snippets/swift/plugins/extractor_registration.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

925 B

import Kreuzberg

// Custom DocumentExtractor registration is not available from Swift.
//
// The Rust FFI defines SwiftDocumentExtractorBox as an opaque extern "Swift" type
// (packages/swift/rust/src/lib.rs, lines 2710-2722), but the swift-bridge code
// generator does not emit a Swift-side protocol definition or factory to construct
// and register instances.
//
// Workaround: Implement DocumentExtractor in Rust and register via a Rust FFI shim,
// or use the built-in extractors (PDF, DOCX, HTML, etc.) which are pre-registered.