Skip to main content

Crate merman_core

Crate merman_core 

Source
Expand description

Mermaid parser + semantic model (headless).

Design goals:

  • 1:1 parity with the repository’s pinned upstream Mermaid baseline
  • deterministic, testable outputs (semantic snapshot goldens)
  • runtime-agnostic async APIs (no specific executor required)

Re-exports§

pub use config::MermaidConfig;
pub use detect::Detector;
pub use detect::DetectorRegistry;
pub use diagram::DiagramRegistry;
pub use diagram::DiagramSemanticParser;
pub use diagram::ParsedDiagram;
pub use diagram::ParsedDiagramRender;
pub use diagram::RenderDiagramRegistry;
pub use diagram::RenderSemanticModel;
pub use diagram::RenderSemanticParser;
pub use error::Error;
pub use error::Result;
pub use preprocess::PreprocessResult;
pub use preprocess::preprocess_diagram;
pub use preprocess::preprocess_diagram_with_known_type;

Modules§

baseline
Active upstream Mermaid baseline metadata.
common
common_db
config
detect
diagram
diagrams
entities
error
generated
geom
models
preprocess
sanitize
time
utils

Structs§

Engine
Headless Mermaid parser engine.
ParseMetadata
Metadata extracted before semantic diagram parsing.
ParseOptions
Parser behavior switches shared by metadata, semantic JSON, and typed render-model parsing.

Constants§

MAX_DIAGRAM_NESTING_DEPTH
Maximum nested diagram/include depth accepted by recursive parsers.

Functions§

supported_diagrams
Returns supported diagram metadata names for binding and host capability discovery.
supported_themes
Returns Mermaid theme names supported by the pinned baseline.