Skip to main content

docparser_core/
lib.rs

1//! `docparser-core`:独立文档解析核心(IR / 统一错误 / 能力抽象 / 注册路由 / 策略 / 引擎)。
2//!
3//! 与 Python 参考实现(`python/docparser/`)共享同一 IR 语义与错误码;
4//! 是发布形态(见 design_docs 06_release_shape.md)的 Rust 侧核心库。
5//! 本 crate 零第三方运行依赖(仅 serde 用于 JSON 往返)。
6
7pub mod emit;
8pub mod engine;
9pub mod error;
10pub mod model;
11pub mod plugin;
12pub mod plugins;
13pub mod policy;
14pub mod registry;
15pub mod router;
16
17pub use engine::DocumentEngine;
18pub use error::{DocError, ErrorCode, Result};
19pub use model::{Block, BlockKind, DocMeta, Document, Image, Page, Rect, TableData};
20pub use plugin::{
21    BackendKind, FormatPlugin, ParseCapability, ProcessCapability, RawDoc, RawImage, RawPage,
22    RawTextItem,
23};
24pub use registry::{Registry, RegistryError};