Skip to main content

mermaid_builder/
lib.rs

1#![doc = include_str!("../README.md")]
2#![no_std]
3
4extern crate alloc;
5
6pub mod diagrams;
7mod errors;
8mod shared;
9pub mod traits;
10pub use errors::{ConfigError, EdgeError, Error, NodeError, StyleClassError};
11
12/// Submodule providing common traits and types for Mermaid diagrams.
13pub mod prelude {
14    pub use crate::{
15        diagrams::{class_diagram::*, entity_relationship::*, flowchart::*},
16        shared::{
17            ArrowShape, Color, Direction, FontWeight, LineStyle, Renderer, StyleClass,
18            StyleClassBuilder, StyleProperty, Unit,
19        },
20        traits::*,
21    };
22}