mermaid_cli/lib.rs
1pub mod app;
2pub mod cli;
3pub mod clipboard;
4pub mod effect;
5pub mod engine;
6pub mod mcp;
7pub mod ollama;
8pub mod providers;
9pub mod render;
10pub mod runtime_client;
11pub mod searxng;
12pub mod session;
13
14// `constants`, `models`, and `utils` live in the `mermaid-model` crate; the
15// durable runtime services live in `mermaid-runtime`. Both are named directly
16// at every call site rather than re-exported under a `crate::`-local alias.
17//
18// The aliases used to exist so a crate extraction could land without touching
19// call sites, which is what they were for. Kept past that they became a fog:
20// `crate::models::` read as a local module, so nothing in a diff showed that
21// `src/domain` was reaching across a crate boundary, and one file managed to
22// spell the same two crates three different ways. AGENTS.md bans back-compat
23// shims; these were the largest ones left.
24//
25// `pub use app::{Config, load_config, persist_last_model}` lived here too, with
26// zero consumers — all 76 call sites used `crate::app::` directly.