Files
fil/docs/snippets/dart/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

16 lines
730 B
Markdown

<!-- snippet:skip reason="DocumentExtractor trait has no createDocumentExtractorDartImpl factory; custom extractors must be implemented in Rust." -->
```dart title="Dart"
import 'package:kreuzberg/kreuzberg.dart';
Future<void> main() async {
// Custom document extractors cannot be registered from Dart. While
// registerDocumentExtractor exists in the KreuzbergBridge API, there is
// no createDocumentExtractorDartImpl factory to construct a Dart-based
// extractor implementation.
//
// Built-in extractors are registered automatically when the library
// initializes. Custom extractors must be written in Rust and linked into
// a Rust shim crate before the Dart host process loads the dynamic library.
}
```