Skip to main content

Crate mineru

Crate mineru 

Source
Expand description

Shared API for the MinerU VLM client.

Re-exports§

pub use command::RunContext;
pub use command::RunError;
pub use command::RunOptions;
pub use command::RunReport;
pub use command::run;
pub use command::run_with_context;

Modules§

command
Shared high-level command execution.
models
official
Additive SDK for the pinned official Python MinerU parser.
official_api
Strict wire DTOs for the additive official-v1 HTTP API.

Structs§

Asset
BlockKind
ContentBlock
Document
ErrorContext
Limits
MinerUVlmClient
MinerUVlmConfig
MinerUVlmPreprocessor
ModelBlock
ModelInfo
NormalizedBbox
OfficialOutputManifest
OfficialPdfOptions
OutputManifest
PageRange
PageResult
ParseOptions
SamplingParams
VlmCompletion
VlmEncodedImage
VlmExtractResult
VlmHeader
VlmHttpClient
VlmHttpConfig
VlmLayoutBlock
VlmPreparedExtraction
VlmPreparedLayout
VlmRequest
VlmSseStream

Enums§

AssetKind
ConcurrencyModel
Request-level concurrency model for the official route. Classic is the long-standing single-encoder pipeline and the default; TwoPhase splits each page’s semantic work into an encode-all stage and a request-all stage, removing the CPU-encode serialization in front of request dispatch. MINERU_OFFICIAL_CONCURRENCY_MODEL=two-phase opts in.
Error
PdfInput
Rotation
VlmBatchPriority
VlmError
VlmImageInput

Functions§

canonical_stem
Canonical portable output directory name shared by route preflight and publication.
markdown_output_path
Locates the markdown output published under directory for stem.
write_outputs

Type Aliases§

ModelOutput
Result
VlmBatchCompletionStream
VlmPriority
VlmResult
VlmSemaphore