Skip to main content

fleischwolf_core/
lib.rs

1//! Core data model for fleischwolf.
2//!
3//! This crate is the Rust counterpart of the `docling-core` Python package: it
4//! owns the unified [`DoclingDocument`] representation that every backend
5//! produces and every serializer consumes. Keeping it dependency-light and
6//! separate from the conversion logic mirrors the Python split between
7//! `docling-core` (the schema) and `docling` (the converters).
8//!
9//! Phase 0 models a simplified, linear node tree that is enough to round-trip
10//! through Markdown. The faithful, `$ref`-based schema that matches
11//! docling-core's JSON wire format lands in Phase 1 (see `MIGRATION.md`).
12
13pub mod base64;
14mod document;
15mod json;
16mod labels;
17mod markdown;
18
19pub use document::{DoclingDocument, Node, PictureImage, Table};
20pub use labels::DocItemLabel;
21pub use markdown::ImageMode;