Skip to main content

Crate selkie

Crate selkie 

Source
Expand description

selkie - A Rust port of mermaid.js

This library provides parsing, layout, and rendering for mermaid diagram syntax. It supports multiple diagram types including flowcharts, sequence diagrams, pie charts, and more.

Re-exports§

pub use config::Config;
pub use error::MermaidError;
pub use error::Result;
pub use render::render;
pub use render::render_ascii;
pub use render::render_ascii_with_config;
pub use render::render_text;
pub use render::render_text_ascii;
pub use render::render_text_ascii_with_config;
pub use render::render_with_config;
pub use render::RenderConfig;
pub use render::Theme;

Modules§

common
Common utilities shared across diagram types
config
Configuration for mermaid diagrams
diagrams
Diagram types and parsing
error
Error types for selkie
layout
Layout engine for positioning diagram elements
render
Rendering engine for mermaid diagrams

Functions§

parse
Parse a mermaid diagram and return a diagram representation