Expand description
Headless layout + rendering for Mermaid diagrams.
This crate consumes merman-core’s semantic models and produces:
- a layout JSON (geometry + routes)
- Mermaid-like SVG output with DOM parity checks against upstream baselines
This low-level crate has no default diagram families. Select diagram-* features or
all-diagrams explicitly; optional layout engines and math remain independent selectors.
Family-owned typed layout APIs are conditional on those selections. Use
family::supports_diagram_type to inspect this renderer’s local handler availability:
another dependency may enable additional core parsers without enabling their renderers.
Re-exports§
pub use resources::CLI_DEFAULT_RESOURCE_PROFILE;pub use resources::GENERAL_BINDING_DEFAULT_RESOURCE_PROFILE;pub use resources::RenderResourceLimitId;pub use resources::RenderResourcePolicy;pub use resources::ResourceLimitCause;pub use resources::ResourceLimitDescriptor;pub use resources::ResourceLimitExceeded;pub use resources::ResourceLimitId;pub use resources::ResourceLimitOverride;pub use resources::ResourceLimitOverrideError;pub use resources::ResourceLimitPhase;pub use resources::resource_limit_descriptors;pub use resources::resource_profile_descriptors;
Modules§
- environment
- Operation-owned render services and deterministic policy.
- error
- family
- math
- Optional math rendering hooks.
- model
- presentation
- Product presentation inputs that are intentionally separate from Mermaid config and SVG output.
- resources
- svg
- SVG renderers for Mermaid-parity diagrams.
- text
Structs§
- Layout
Options - Host-provided geometry available to family layout algorithms.
- Render
Capability Policy - Operation-level permission for optional renderer capabilities.
- Render
Resource Profile Descriptor
Enums§
- Error
- Render
Capability - Optional renderer capabilities that a typed diagram operation may require.
- Render
Resource Profile
Functions§
- layout_
cytoscape_ available - Reports whether the Cytoscape-derived layout backend is present in this compiled renderer.
- layout_
elk_ available - Reports whether the ELK layout backend is present in this compiled renderer.
- math_
available - Reports whether the built-in math renderer is present in this compiled renderer.