Skip to main content

Crate merman_render

Crate merman_render 

Source
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§

LayoutOptions
Host-provided geometry available to family layout algorithms.
RenderCapabilityPolicy
Operation-level permission for optional renderer capabilities.
RenderResourceProfileDescriptor

Enums§

Error
RenderCapability
Optional renderer capabilities that a typed diagram operation may require.
RenderResourceProfile

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.

Type Aliases§

Result