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

769 B

import 'package:kreuzberg/kreuzberg.dart';

Future<void> main() async {
  // Custom document extractors cannot be implemented in Dart. While the
  // traits.dart file includes the DocumentExtractor abstract class,
  // flutter_rust_bridge does not generate a createDocumentExtractorDartImpl
  // factory function, so there is no way to bridge Dart closures into the
  // extractor registry.
  //
  // Implement custom extractors in Rust and register them via a Rust shim
  // crate that links kreuzberg before the Dart host loads the dynamic library.
}