Skip to main content

mermaid_cli/
lib.rs

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